@Test
public void testRepairedComment() {

	FileDefinition def = new FileDefinition( new File( "whatever" ));
	BlockComment block = new BlockComment( def, "invalid comment \n\t # followed by a valid \n#comment" );
	FileDefinitionSerializer serializer = new FileDefinitionSerializer();
	String s = serializer.write( block, true );
	String expected = "# invalid comment \n\t # followed by a valid \n#comment\n".replace( "\n", System.getProperty( "line.separator" ));
	Assert.assertEquals( expected, s );
}