@Test
public void testChangeState_TargetException() throws Exception {

	TestTargetResolver newResolver = new TestTargetResolver() {
		@Override
		public TargetHandler findTargetHandler( Map<String,String> targetProperties )
		throws TargetException {
			throw new TargetException( "For test purpose!" );
		}
	};
	this.manager.setTargetResolver( newResolver );
	String instancePath = InstanceHelpers.computeInstancePath( this.app.getTomcatVm());
	Assert.assertEquals( InstanceStatus.NOT_DEPLOYED, this.app.getTomcatVm().getStatus());
	Response resp = this.resource.changeInstanceState( this.app.getName(), InstanceStatus.DEPLOYED_STARTED.toString(), instancePath );
	Assert.assertEquals( Status.FORBIDDEN.getStatusCode(), resp.getStatus());
	Assert.assertEquals( InstanceStatus.NOT_DEPLOYED, this.app.getTomcatVm().getStatus());
}