@Test public void testIssue() throws Exception { LocalMuleClient client = muleContext.getClient(); client.dispatch(VM_TEST_INPUT, TEST_MESSAGE, null); client.dispatch(VM_TEST_INPUT, TEST_MESSAGE, null); assertOnlyOneThreadWaiting(messages, latch); }