@Test
public void stopCanWaitForWorkersEvenWhenOutgoingChannelNeverConnects() throws Exception {
ISOChannel channel = mock(ISOChannel.class);
when(channel.isConnected()).thenReturn(false);
when(channel.receive()).thenThrow(new ISOException("unconnected ISOChannel"));
// repeat test to ensure clean up occurs after stop
for (int i = 0; i < 10; i++) {
channelAdaptor = configureAndStart(new ChannelAdaptorWithoutQ2(channel));
waitForSenderAndReceiverToStart();