@Test
public void testComment() {

	FileDefinition file = new FileDefinition( new File( "some-file" ));
	BlockComment block = new BlockComment( file, "# some comment" );
	Assert.assertEquals( 0, ParsingModelValidator.validate((AbstractBlock) block ).size());
	block = new BlockComment( file, "##### some comment" );
	Assert.assertEquals( 0, ParsingModelValidator.validate( block ).size());
	block = new BlockComment( file, "# comment 1\n#comment 2\n# Comment number blabla" );
	Assert.assertEquals( 0, ParsingModelValidator.validate( block ).size());
	block = new BlockComment( file, "# Comment 1\nOops, I forgot the sharp symbol\n# Another comment" );
	Collection<ParsingError> errors = ParsingModelValidator.validate( block );
	Assert.assertEquals( 1, errors.size());
	Assert.assertEquals( ErrorCode.PM_MALFORMED_COMMENT, errors.iterator().next().getErrorCode());
}