@Override
public Void answer(InvocationOnMock invocation) throws Throwable
{
final String clientName = (String)invocation.getArguments()[0];
final Command command = (Command)invocation.getArguments()[1];
_controller.processStopClientResponse(new Response(clientName, command.getType()));
return null;
}
}).when(_respondingJmsDelegate).sendCommandToClient(anyString(), isA(Command.class));
}