@Test
public void testHandleEvent_withContext_noRule() throws Exception {

	List<Rule> rules = new ArrayList<>( 0 );
	Application app = new Application( "app", new TestApplicationTemplate());
	AutonomicApplicationContext ctx = Mockito.spy( new AutonomicApplicationContext( app ));
	Mockito.when( ctx.findRulesToExecute()).thenReturn( rules );
	this.autonomicMngr.appNameToContext.put( "app", ctx );
	ManagedApplication ma = new ManagedApplication( app );
	this.autonomicMngr.handleEvent( ma, new MsgNotifAutonomic( "app", "/root", "event", null ));
	Mockito.verifyZeroInteractions( this.commandsMngr );
	Mockito.verifyZeroInteractions( this.preferencesMngr );
	Map<?,?> eventNameToLastRecordTime = TestUtils.getInternalField( ctx, "eventNameToLastRecordTime", Map.class );
	Assert.assertEquals( 1, eventNameToLastRecordTime.size());
	Assert.assertNotNull( eventNameToLastRecordTime.get( "event" ));
}