### Question:
LoginController extends UIController { public User getCurrentUser(HttpServletRequest request) { try { User user = checkSingleLogin(request); if (user == null) { user = checkAutoLogin(request); } return user; } catch (Exception except) { return null; } } LoginController(TokenService tokenService, String redirectSuccessfulLogin); String getLoginPageURL(); void setLoginPageURL(String url); static ModelAndView redirect(String url); ModelAndView redirectAfterLogin(HttpServletRequest request, HttpServletResponse response); static void clearAutoLogin(HttpServletResponse response); static void clearSingleLogin(HttpServletResponse response); static void clearSecureRandom(HttpServletResponse response); static void clearRootCookie(HttpServletResponse response); static String getSecureRandomCookie(HttpServletRequest request); static String getSecureRandomSession(HttpServletRequest request); static void setSecureRandomSession(HttpServletRequest request, String secureRandom); static void generateSecureRandom(HttpServletRequest request, HttpServletResponse response); static String generateSecureRandom(); static String bytesToHex(byte[] bytes); static void clearCookie(String cookieName, HttpServletResponse response); static void clearOtherCookie(HttpServletResponse response,String cookieName,String path); static String extractUser(Property[] props); static String[] extractRoles(Property[] props); User getCurrentUser(HttpServletRequest request); void setRedirectAfterLoginCookie(HttpServletResponse response); static void setRedirectAfterLoginCookie(HttpServletResponse response, String url); static void setAutoLoginCookie(HttpServletResponse response, String token); static void setSingleLoginCookie(HttpServletResponse response, String token); List<String> getGrantedRoles(); void setGrantedRoles(List<String> roles); String arrayToString(String[] stringArray, String delimiter); void executePost(PostMethod post); @SuppressWarnings("unchecked") ModelAndView logIn(HttpServletRequest request, HttpServletResponse response, LoginCommand login,
            BindException errors); ModelAndView logOut(HttpServletRequest request, HttpServletResponse response, LoginCommand login,
            BindException errors); static final String AUTO_LOGIN_ID; static final String SINGLE_LOGIN_ID; static final String REDIRECT_AFTER_LOGIN; static final String SECURE_RANDOM; static final String JSESSION; static final String UI_FW; static final String MONITORING; static final String BPMS_CONSOLE; }### Answer:
@Test public void testGetCurrentUser() throws Exception { }