// Sends data to process
muleClient.send("vm://in", TEST_MESSAGE, null);
muleClient.send("vm://in", TEST_MESSAGE, null);
// Sends the signal to start the batch process
muleClient.send("vm://startBatch", TEST_MESSAGE, null);
// Checks that the batch has processed the two messages without error
MuleMessage message = muleClient.request("jms://status.queue?connector=jmsConnector", 5000);
assertNotNull(message);
assertEquals("messagemessage", message.getPayloadAsString());