	@Test
	public void testDebugger() throws Exception {


		ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
		InputStream yaml = getClass().getResourceAsStream(
				"/yaml/templateDebugger.yml");
		TemplateDebugger debugger = mapper.readValue(yaml,
				TemplateDebugger.class);
		assertNotNull(debugger);
		String rendered = debugger.render();
		assertNotNull(rendered);
		InputStream gold = getClass().getResourceAsStream("/configurations/templateDebugger.rendered");
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		Utils.copy(gold, baos);
		String expected = baos.toString();
		assertEquals(expected, rendered);
	}