CommunicationObserver { public String getID() { return id; } CommunicationObserver(String id);   CommunicationObserver(String id, int maxClientMBeans); void unregister(); void gotMessageFrom(String client, String request, String address, int port); void didSendSegmentBytes(String client, int size); void didSendBinariesBytes(String client, long size); String getID();  }
@Test public void shouldExposeTheProvidedID() throws Exception { assertEquals("test", observer.getID()); }