@Test
public void testChangeState_deployRoot_success() throws Exception {

	TestTargetResolver iaasResolver = new TestTargetResolver();
	this.manager.setTargetResolver( iaasResolver );
	String targetId = this.manager.targetsMngr().createTarget( "id: tid\nhandler: test" );
	this.manager.targetsMngr().associateTargetWith( targetId, this.app, null );
	Assert.assertEquals( 0, iaasResolver.instancePathToRunningStatus.size());
	Response resp = this.resource.changeInstanceState(
			this.app.getName(),
			InstanceStatus.DEPLOYED_STARTED.toString(),
			InstanceHelpers.computeInstancePath( this.app.getMySqlVm()));
	String path = InstanceHelpers.computeInstancePath( this.app.getMySqlVm());
	Assert.assertEquals( Status.OK.getStatusCode(), resp.getStatus());
	Assert.assertEquals( 1, iaasResolver.instancePathToRunningStatus.size());
	Assert.assertTrue( iaasResolver.instancePathToRunningStatus.get( path ));
}