WorkspaceItem implements InProgressSubmission, Serializable, ReloadableEntity<Integer> { @Override public boolean equals(Object o) { if (this == o) { return true; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o); if (getClass() != objClass) { return false; } final WorkspaceItem that = (WorkspaceItem)o; if (this.getID() != that.getID()) { return false; } return true; } protected  WorkspaceItem(); @Override Integer getID(); int getStageReached(); void setStageReached(int v); int getPageReached(); void setPageReached(int v); @Override boolean equals(Object o); @Override int hashCode(); @Override Item getItem(); @Override Collection getCollection(); @Override EPerson getSubmitter(); @Override boolean hasMultipleFiles(); @Override void setMultipleFiles(boolean b); @Override boolean hasMultipleTitles(); @Override void setMultipleTitles(boolean b); @Override boolean isPublishedBefore(); @Override void setPublishedBefore(boolean b); List<Group> getSupervisorGroups();  }
@Test public void testFindByEPerson() throws Exception { EPerson ep = context.getCurrentUser(); List<WorkspaceItem> found = workspaceItemService.findByEPerson(context, ep); assertThat("testFindByEPerson 0",found,notNullValue()); assertTrue("testFindByEPerson 1",found.size() >= 1); boolean exists = false; for(WorkspaceItem w: found) { if(w.equals(wi)) { exists = true; } } assertTrue("testFindByEPerson 2",exists); }