### Question:
IntegerPropertyDefinition extends PropertyDefinition<Integer> { public Integer getUpperLimit() { return upperLimit; } private  IntegerPropertyDefinition(AbstractManagedObjectDefinition<?, ?> d, String propertyName,
        EnumSet<PropertyOption> options, AdministratorAction adminAction,
        DefaultBehaviorProvider<Integer> defaultBehavior, int lowerLimit, Integer upperLimit, boolean allowUnlimited); static Builder createBuilder(AbstractManagedObjectDefinition<?, ?> d, String propertyName); int getLowerLimit(); Integer getUpperLimit(); LocalizableMessage getUnitSynopsis(); LocalizableMessage getUnitSynopsis(Locale locale); boolean isAllowUnlimited(); @Override void validateValue(Integer value); @Override String encodeValue(Integer value); @Override Integer decodeValue(String value); @Override R accept(PropertyDefinitionVisitor<R, P> v, P p); @Override R accept(PropertyValueVisitor<R, P> v, Integer value, P p); @Override void toString(StringBuilder builder); @Override int compare(Integer o1, Integer o2);  }### Answer:
@Test(dataProvider = "limitData") public void testUpperLimitWithInteger(int limit, int expectedValue) { IntegerPropertyDefinition.Builder builder = createTestBuilder(); builder.setUpperLimit(limit); IntegerPropertyDefinition propertyDef = buildTestDefinition(builder); assert propertyDef.getUpperLimit().equals(expectedValue); }