OperationAllowed extends GeonetEntity { @EmbeddedId public OperationAllowedId getId() { return _id; } OperationAllowed();  OperationAllowed(@Nonnull OperationAllowedId id); @EmbeddedId OperationAllowedId getId(); void setId(OperationAllowedId id); @Override String toString(); OperationAllowed setId(Metadata metadata, Group group, Operation operation); @Override boolean equals(Object o); @Override int hashCode(); static final String TABLE_NAME; }
@Test public void testGetGroup() { OperationAllowed operationAllowed = _opAllowRepo.findOne(_opAllowed1.getId()); assertNotNull(operationAllowed); assertEquals(_opAllowed1.getId().getGroupId(), operationAllowed.getId().getGroupId()); }