JmxWrapperForMessagingClient implements IMessagingClient, MessagingApiMBean { @Override public void setOwnerProperties( RecipientKind ownerKind, String domain, String applicationName, String scopedInstancePath ) { this.id = MessagingUtils.buildId( ownerKind, domain, applicationName, scopedInstancePath ); this.messagingClient.setOwnerProperties( ownerKind, domain, applicationName, scopedInstancePath ); } JmxWrapperForMessagingClient( IMessagingClient messagingClient );   JmxWrapperForMessagingClient( IMessagingClient messagingClient, OsgiHelper osgiHelper ); void unregisterService(); boolean isDismissClient(); @Override synchronized void reset(); @Override String getId(); @Override synchronized long getFailedSendingCount(); @Override synchronized long getSentMessagesCount(); @Override synchronized long getTimestampOfLastSendingFailure(); @Override synchronized long getTimestampOfLastSentMessage(); @Override synchronized long getFailedReceptionCount(); @Override synchronized long getReceivedMessagesCount(); @Override synchronized long getTimestampOfLastReceptionFailure(); @Override synchronized long getTimestampOfLastReceivedMessage(); @Override void closeConnection(); @Override void openConnection(); @Override void deleteMessagingServerArtifacts( Application application ); @Override Map<String,String> getConfiguration(); @Override String getMessagingType(); @Override boolean isConnected(); @Override void subscribe( MessagingContext ctx ); @Override void unsubscribe( MessagingContext ctx ); @Override void setMessageQueue( RoboconfMessageQueue messageQueue ); @Override void publish( MessagingContext ctx, Message msg ); @Override void setOwnerProperties(
			RecipientKind ownerKind,
			String domain,
			String applicationName,
			String scopedInstancePath );  }
@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()); }