MessageListener { public String getRecipient() { return recipient; } protected  MessageListener( final String recipient ); abstract void onMessage( Message message ); String getRecipient(); @Override boolean equals( final Object o ); @Override int hashCode(); static final int MAX_RECIPIENT_ID_LEN; }
@Test public void testGetRecipient() throws Exception { assertEquals( RECIPIENT_NAME, messageListener.getRecipient() ); }