Context { public EPerson getCurrentUser() { return currentUser; } protected  Context(EventService eventService, DBConnection dbConnection);  Context();  Context(Mode mode); DatabaseConfigVO getDBConfig(); String getDbType(); void setCurrentUser(EPerson user); EPerson getCurrentUser(); Locale getCurrentLocale(); void setCurrentLocale(Locale locale); boolean ignoreAuthorization(); void turnOffAuthorisationSystem(); void restoreAuthSystemState(); void setExtraLogInfo(String info); String getExtraLogInfo(); void complete(); void commit(); void dispatchEvents(); void setDispatcher(String dispatcher); void addEvent(Event event); LinkedList<Event> getEvents(); boolean hasEvents(); Event pollEvent(); void abort(); boolean isValid(); boolean isReadOnly(); void setSpecialGroup(UUID groupID); boolean inSpecialGroup(UUID groupID); List<Group> getSpecialGroups(); void shutDownDatabase(); long getCacheSize(); void setMode(Mode newMode); Mode getCurrentMode(); @Deprecated void enableBatchMode(boolean batchModeEnabled); @Deprecated boolean isBatchModeEnabled(); @SuppressWarnings("unchecked") E reloadEntity(E entity); @SuppressWarnings("unchecked") void uncacheEntity(E entity); Boolean getCachedAuthorizationResult(DSpaceObject dspaceObject, int action, EPerson eperson); void cacheAuthorizedAction(DSpaceObject dspaceObject, int action, EPerson eperson, Boolean result, ResourcePolicy rp); Boolean getCachedGroupMembership(Group group, EPerson eperson); void cacheGroupMembership(Group group, EPerson eperson, Boolean isMember); void cacheAllMemberGroupsSet(EPerson ePerson, Set<Group> groups); Set<Group> getCachedAllMemberGroupsSet(EPerson ePerson);  }
@Test public void testGetCurrentUser() { assertThat("testGetCurrentUser 0", context.getCurrentUser(), notNullValue()); assertThat("testGetCurrentUser 1", context.getCurrentUser(), equalTo(eperson)); }