RestrictionDefinitionImpl implements RestrictionDefinition { @NotNull @Override public String getName() { return name; } 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 testGetName() { assertEquals(name, definition.getName()); }