### Question:
BooleanPropertyDefinition extends
    PropertyDefinition<Boolean> { @Override public void validateValue(Boolean value) throws PropertyException { 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 testValidateValue1() { BooleanPropertyDefinition d = createPropertyDefinition(); d.validateValue(Boolean.TRUE); }
@Test(expectedExceptions = NullPointerException.class) public void testValidateValue2() { BooleanPropertyDefinition d = createPropertyDefinition(); d.validateValue(null); }