b.build();
String message = b.getErrors().get(0);
assertTrue("The lacking version error first",
message.contains("package info for test.package_info_versioniskey attribute [1.0.0=''],"));
Location location = b.getLocation(message);
assertNotNull("Supposed to have a location", location);
assertNotNull("And that must have a file", location.file);
assertEquals("Which should be the packaginfo file", "packageinfo", new File(location.file).getName());
assertEquals(4, location.line);
assertEquals(5, location.length);