@Test
public void testExecute_testException() throws Exception {

	AgentStatusCommand cmd = new AgentStatusCommand();
	AgentMessagingInterface am1 = Mockito.mock( AgentMessagingInterface.class );
	Mockito.doThrow( new RuntimeException( "for test" )).when( am1 ).agentStatus();
	cmd.agents = Arrays.asList( am1 );
	Assert.assertNull( cmd.execute());
	Mockito.verify( am1, Mockito.only()).agentStatus();
}