MockAgentConfiguration configuration = new MockAgentConfiguration("localhost");
MockNodeStatus nodeStatus = new MockNodeStatus();
AgentProcessManager processManager = new AgentProcessManager(new AgentProcessMap(AgentProcessMap.buildDefaultMap()), configuration, nodeStatus);
try
{
processManager.startProcess("remove-node", "x", new String[0]);
Assert.fail();
}
catch ( IncorrectArgumentsException e )
{
// correct