### Question:
BooleanPropertyDefinition extends PropertyDefinition<Boolean> { @Override public void validateValue(Boolean value) { Reject.ifNull(value); } private  BooleanPropertyDefinition(AbstractManagedObjectDefinition<?, ?> d, String propertyName,
        EnumSet<PropertyOption> options, AdministratorAction adminAction,
        DefaultBehaviorProvider<Boolean> defaultBehavior); static Builder createBuilder(AbstractManagedObjectDefinition<?, ?> d, String propertyName); @Override void validateValue(Boolean value); @Override Boolean decodeValue(String value); @Override R accept(PropertyDefinitionVisitor<R, P> v, P p); @Override R accept(PropertyValueVisitor<R, P> v, Boolean value, P p); @Override int compare(Boolean o1, Boolean o2);  }### Answer:
@Test public void testValidateValue() { BooleanPropertyDefinition def = createPropertyDefinition(); def.validateValue(Boolean.TRUE); }
@Test(expectedExceptions = NullPointerException.class) public void testValidateValueIllegal() { BooleanPropertyDefinition def = createPropertyDefinition(); def.validateValue(null); }