@Test
public void testMutableContentProhibited() {

    validator = new PackageTypeValidator(filter, ValidationMessageSeverity.ERROR, ValidationMessageSeverity.INFO, ValidationMessageSeverity.INFO, true, false, false, PackageType.APPLICATION, PackageTypeValidatorFactory.DEFAULT_JCR_INSTALLER_NODE_PATH_REGEX, PackageTypeValidatorFactory.DEFAULT_ADDITIONAL_JCR_INSTALLER_FILE_NODE_PATH_REGEX, null);
    Mockito.when(properties.getPackageType()).thenReturn(PackageType.MIXED);
    ValidationExecutorTest.assertViolation(validator.validate(properties), new ValidationMessage(ValidationMessageSeverity.ERROR, String.format(PackageTypeValidator.MESSAGE_PROHIBITED_MUTABLE_PACKAGE_TYPE, PackageType.MIXED)));
    Mockito.when(properties.getPackageType()).thenReturn(PackageType.CONTENT);
    ValidationExecutorTest.assertViolation(validator.validate(properties), new ValidationMessage(ValidationMessageSeverity.ERROR, String.format(PackageTypeValidator.MESSAGE_PROHIBITED_MUTABLE_PACKAGE_TYPE, PackageType.CONTENT)));
    Mockito.when(properties.getPackageType()).thenReturn(PackageType.APPLICATION);
    Assert.assertThat(validator.validate(properties), AnyValidationMessageMatcher.noValidationInCollection());
    Mockito.when(properties.getPackageType()).thenReturn(PackageType.CONTAINER);
    Assert.assertThat(validator.validate(properties), AnyValidationMessageMatcher.noValidationInCollection());
}