@Test
public void testNotifyVmWasDeletedByHand() throws Exception {

	AtomicInteger vmCount = this.autonomicMngr.autonomicVmCount;
	Assert.assertEquals( 0, vmCount.get());
	vmCount.set( 5 );
	Instance rootInstance = new Instance( "inst" );;
	this.autonomicMngr.notifyVmWasDeletedByHand( rootInstance );
	Assert.assertEquals( 5, vmCount.get());
	rootInstance.data.put( AutonomicMngrImpl.AUTONOMIC_MARKER, "whatever" );
	this.autonomicMngr.notifyVmWasDeletedByHand( rootInstance );
	Assert.assertEquals( 4, vmCount.get());
	// The marker was already removed
	this.autonomicMngr.notifyVmWasDeletedByHand( rootInstance );
	Assert.assertEquals( 4, vmCount.get());
}