@Test
public void testSimpleTypeDetector() throws Exception {

	ByteArrayOutputStream buffer = new ByteArrayOutputStream();
	PrintStream out = System.out;
	System.setOut(new PrintStream(buffer, true, UTF_8.name()));
	SimpleTypeDetector.main(new String[] { "pom.xml" });
	System.setOut(out);
	assertEquals("pom.xml: application/xml",
			buffer.toString(UTF_8.name()).trim());
}