@Test public void testTransmission() throws Exception { channel.updateMode(ConnectionMode.SEND_RECV); audioMixer.start(); oobMixer.start(); detector.activate(); new Thread(sender).start(); Thread.sleep(5000); channel.updateMode(ConnectionMode.INACTIVE); audioMixer.stop(); oobMixer.stop(); detector.deactivate(); assertEquals(4, count); }