132133134135136137138139140141142
run.set(false); t.join(); client.shutdown(); server.shutdown(); sink.close(); assertEquals(sink.getNumOfPendingMessages(), 0); }