MessageImpl implements Message { @Override public String getSourcePeerId() { return sourcePeerId; } MessageImpl( Message message );  MessageImpl( String sourcePeerId, Object payload ); @Override String getSourcePeerId(); @Override UUID getId(); @Override T getPayload( Class<T> clazz ); @Override String getSender(); @Override void setSender( final String sender ); @Override String getPayload(); @Override String toString(); static final int MAX_SENDER_LEN; }
@Test public void testGetSourcePeerId() throws Exception { assertEquals( SOURCE_PEER_ID, message.getSourcePeerId() ); }