NazgulMessageProcessor extends AgentMessageProcessor { public void processMessageForReal( Message message ) { super.processMessage( message ); } NazgulMessageProcessor( NazgulAgent nazgulAgent, AgentCoordinator sauron ); void processMessageForReal( Message message ); String getAgentId();  }
@Test public void testProcessMessageForReal() { NazgulAgent nazgulAgent = Mockito.mock( NazgulAgent.class ); AgentCoordinator sauron = Mockito.mock( AgentCoordinator.class ); NazgulMessageProcessor processor = new NazgulMessageProcessor( nazgulAgent, sauron ); Message msg = Mockito.mock( Message.class ); processor.processMessageForReal( msg ); }