@Test
public void testApplicationPackageTypeWithAllowedComplexFilters() throws IOException, ConfigurationException {

    validator = new PackageTypeValidator(filter, ValidationMessageSeverity.ERROR, ValidationMessageSeverity.WARN, ValidationMessageSeverity.INFO, false, false, true, PackageType.APPLICATION, PackageTypeValidatorFactory.DEFAULT_JCR_INSTALLER_NODE_PATH_REGEX, PackageTypeValidatorFactory.DEFAULT_ADDITIONAL_JCR_INSTALLER_FILE_NODE_PATH_REGEX, null);
    DefaultWorkspaceFilter filter = new DefaultWorkspaceFilter();
    // with filters with include/exclude
    try (InputStream input = this.getClass().getResourceAsStream("/filter.xml")) {
        filter.load(input);
    }
    Assert.assertThat(validator.validate(filter), AnyValidationMessageMatcher.noValidationInCollection());
}