Role extends AbstractIdentityType { @AttributeProperty @StereotypeProperty(IDENTITY_ROLE_NAME) @Unique public String getName() { return name; } Role();  Role(String name); @AttributeProperty @StereotypeProperty(IDENTITY_ROLE_NAME) @Unique String getName(); void setName(String name); static final QueryParameter NAME; }
@Test public void constructor_noArg() { Role role = new Role(); assertNull("No arg constructor", role.getName()); }
@Test public void constructor_name() { Role role = new Role("me"); assertEquals("me", role.getName()); }