RequestListener { public abstract Object onRequest( Payload payload ) throws PeerException; protected  RequestListener( final String recipient ); String getRecipient(); abstract Object onRequest( Payload payload );  }
@Test public void testOnRequest() throws Exception { Object response = requestListener.onRequest( payload ); assertEquals( payload, response ); }