@Test(timeout = 5000)
public void testClean1() throws IOException
{

	InputStream in = MainTest.class.getResourceAsStream("rules/data/test1.tex");
	ByteArrayOutputStream baos = new ByteArrayOutputStream();
	PrintStream out = new PrintStream(baos);
	int ret_code = Main.mainLoop(new String[] {"--no-color", "--read-all", "--clean"}, in, out, new NullPrintStream());
	String output = new String(baos.toByteArray());
	assertNotNull(output);
	assertEquals(0, ret_code);
	assertFalse(output.trim().isEmpty());
}