@Test
public void async() throws ConfigurationException, ManagedLifecycleException, InterruptedException, URISyntaxException, UnknownHostException, IOException
{
final ConfigTree config = createConfig(HOST, PORT, handlerName, SERVICE_CATEGORY, SERVICE_NAME);
UdpGatewayListener gateway = new UdpGatewayListener(config);
gateway.initialise();
final String payload = "Some content";
sendUdpString(payload, HOST, PORT);
Thread.sleep(1000l);
Object object = mockCourier.message.getBody().get();
assertTrue(object instanceof byte[]);
byte[] bytes = (byte[]) object;
assertEquals(payload, new String(bytes));
gateway.doStop();
}