RestOptions { public List<Lookup> getLookups() { return entity.getLookupsExposedByRest(); } RestOptions();  RestOptions(Entity entity); RestOptionsDto toDto(); Long getId(); void setId(Long id); Entity getEntity(); void setEntity(Entity entity); boolean isAllowCreate(); void setAllowCreate(boolean allowCreate); boolean isAllowRead(); void setAllowRead(boolean allowRead); boolean isAllowUpdate(); void setAllowUpdate(boolean allowUpdate); boolean isAllowDelete(); void setAllowDelete(boolean allowDelete); boolean isModifiedByUser(); void setModifiedByUser(boolean modifiedByUser); List<Lookup> getLookups(); List<Field> getFields(); final void update(RestOptionsDto restOptionsDto); RestOptions copy(); @NotPersistent boolean supportsAnyOperation(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetLookups() throws Exception { assertEquals(expectedLookups, restOptions.getLookups()); }