}
@Test
public void testSendAction() throws Exception
{
StatusAction statusAction;
ManagerResponse response;
statusAction = new StatusAction();
statusAction.setActionId("123");
// fake connect
mc.connect();
mc.setState(ManagerConnectionState.CONNECTED);
response = mc.sendAction(statusAction);
assertEquals("incorrect actionId in action", "123", statusAction.getActionId());
assertEquals("incorrect actionId in response", "123", response.getActionId());
assertEquals("incorrect response", "Success", response.getResponse());
assertEquals("other actions not sent 1 time", 1, mockWriter.otherActionsSent);
}