prepareScheduler();
TestServerCommunicationsService agentServiceContainer = prepareForTestAgents();
agentServiceContainer.resourceFactoryService = mockAgentService;
//the server plugins are in play when package types are involved
StandardServerPluginService serverPluginService = new StandardServerPluginService(getTempDir());
prepareCustomServerPluginService(serverPluginService);
serverPluginService.startMasterPluginContainer();
setupResourceEnvironment();
}