@Test
public void testImport() {

	FileDefinition file = new FileDefinition( new File( "some-file" ));
	BlockImport block = new BlockImport( file );
	block.setUri( "another-file.txt" );
	Assert.assertEquals( 0, ParsingModelValidator.validate( block ).size());
	block.setUri( "http://server/another-file.txt" );
	Assert.assertEquals( 0, ParsingModelValidator.validate( block ).size());
	block.setUri( "" );
	Collection<ParsingError> errors = ParsingModelValidator.validate( block );
	Assert.assertEquals( 1, errors.size());
	Assert.assertEquals( ErrorCode.PM_EMPTY_IMPORT_LOCATION, errors.iterator().next().getErrorCode());
}