};
try
{
service = new RPCServiceImpl(container.getContext(), params, configManager);
service.registerCommand(foo);
try
{
service.executeCommandOnAllNodes(foo, true);
fail("We expect a RPCException since the current state is not the expected one");
}