@Test
public void testGetPayload() throws Exception
{

    CustomObject customObject = new CustomObject( 123, "hello" );
    MessageImpl message = new MessageImpl( UUID.randomUUID().toString(), customObject );
    assertEquals( customObject, message.getPayload( CustomObject.class ) );
}