void onAddRcvDestination(final long registrationId, final String destinationChannel, final long correlationId)
    {
        if (destinationChannel.startsWith(IPC_CHANNEL))
        {
            onAddRcvIpcDestination(registrationId, destinationChannel, correlationId);
        }
        else if (destinationChannel.startsWith(SPY_QUALIFIER))
        {
            onAddRcvSpyDestination(registrationId, destinationChannel, correlationId);
        }
        else
        {
            onAddRcvNetworkDestination(registrationId, destinationChannel, correlationId);
        }
    }
@Test
    void shouldThrowExceptionWhenRcvDestinationHasResponseCorrelationIdSet()
    {
        final Exception exception = assertThrowsExactly(InvalidChannelException.class,
            () -> driverConductor.onAddRcvDestination(
            42, "aeron:udp?endpoint=localhost:8080|response-correlation-id=1234", 1)
        );

        assertThat(
            exception.getMessage(),
            CoreMatchers.startsWith("ERROR - destinations must not contain the key: response-correlation-id"));
    }