@Test
public void testPropertiesWithInvalidElement()
        throws URISyntaxException, IOException, SAXException, ParserConfigurationException, ConfigurationException {

    try (InputStream input = this.getClass().getResourceAsStream("/invalid-package/META-INF/vault/properties.xml")) {
        Collection<ValidationMessage> messages = validator.validateMetaInfData(input, Paths.get("vault/properties.xml"));
        ValidationExecutorTest.assertViolation(messages,
                new ValidationMessage(ValidationMessageSeverity.WARN,
                               AdvancedPropertiesValidator.MESSAGE_INVALID_PROPERTIES_XML,
                        new InvalidPropertiesFormatException("org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 19; Element type \"someinvalidentry\" must be declared.")));
    }
}