@Test
public void testSetOwnerProperties() {

	IMessagingClient messagingClient = Mockito.mock( IMessagingClient.class );
	JmxWrapperForMessagingClient client = new JmxWrapperForMessagingClient( messagingClient );
	Assert.assertNull( client.getId());
	client.setOwnerProperties( RecipientKind.DM, "domain", "app", "/root" );
	Mockito.verify( messagingClient ).setOwnerProperties( RecipientKind.DM, "domain", "app", "/root" );
	Assert.assertNotNull( client.getId());
	Assert.assertEquals( MessagingUtils.buildId( RecipientKind.DM, "domain", "app", "/root" ), client.getId());
}