@Test
public void testExtractRuleSections_rest() throws Exception {

	File f = TestUtils.findTestFile( "/rest-events.conf" );
	String fileContent = Utils.readFileContent( f );
	MonitoringRunnable task = new MonitoringRunnable( this.agentInterface, HANDLERS );
	this.agentInterface.setScopedInstance( new Instance( "root" ));
	List<MonitoringHandlerRun> handlers = task.extractRuleSections( f, fileContent, null );
	Assert.assertEquals( 1, handlers.size());
	MonitoringHandlerRun bean = handlers.get( 0 );
	Assert.assertEquals( "rest", bean.handlerName );
	Assert.assertEquals( "myRuleName-1", bean.eventId );
	Assert.assertTrue( bean.rawRulesText.contains( "http://google.fr" ));
}