@Test
public void testBootstrap() {

	InfrastructureManager inf = InfrastructureManagerFactory.createInfrastructureManager(0);
	Map<Integer, ControlEndPoint> mapOperatorToEndPoint = null;
	Comm cu = new IOComm(new JavaSerializer(), Executors.newCachedThreadPool());
	LifecycleManager lifeManager = LifecycleManager.getInstance();
	GenericQueryManager qm = GenericQueryManager.getInstance(inf, mapOperatorToEndPoint, cu, lifeManager, null);
	
	MasterWorkerAPIImplementation api = new MasterWorkerAPIImplementation(qm, inf);
	
	int avail = inf.executionUnitsAvailable();
	assert(avail == 0);
	BootstrapCommand bc = new BootstrapCommand("10.0.0.1", 3500, 4500);
	api.bootstrapCommand(bc);
	
	avail = inf.executionUnitsAvailable();
	assert(avail == 1);
}