RestrictionImpl implements Restriction { @NotNull @Override public PropertyState getProperty() { return property; } RestrictionImpl(@NotNull PropertyState property, @NotNull RestrictionDefinition def);  RestrictionImpl(@NotNull PropertyState property, boolean isMandatory); @NotNull @Override RestrictionDefinition getDefinition(); @NotNull @Override PropertyState getProperty(); @Override int hashCode(); @Override boolean equals(Object o);  }
@Test public void testGetProperty() { assertEquals(createProperty(name, value, type), restriction.getProperty()); }