RestrictionDefinitionImpl implements RestrictionDefinition { @Override public boolean isMandatory() { return isMandatory; } RestrictionDefinitionImpl(@NotNull String name, Type<?> type, boolean isMandatory); @NotNull @Override String getName(); @NotNull @Override Type<?> getRequiredType(); @Override boolean isMandatory(); @Override int hashCode(); @Override boolean equals(Object o);  }
@Test public void testIsMandatory() { assertTrue(definition.isMandatory()); }