UaaAuthenticationDetails implements Serializable { public UaaLoginHint getLoginHint() { return loginHint; } private  UaaAuthenticationDetails();  UaaAuthenticationDetails(HttpServletRequest request);  UaaAuthenticationDetails(HttpServletRequest request, String clientId);  UaaAuthenticationDetails(@JsonProperty("addNew") boolean addNew,
                                    @JsonProperty("clientId") String clientId,
                                    @JsonProperty("origin") String origin,
                                    @JsonProperty("sessionId") String sessionId); String getOrigin(); String getSessionId(); String getClientId(); boolean isAddNew(); void setAddNew(boolean addNew); UaaLoginHint getLoginHint(); void setLoginHint(UaaLoginHint loginHint); Map<String, String[]> getParameterMap(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String ADD_NEW; static final UaaAuthenticationDetails UNKNOWN; }
@Test void testNoLoginHint() { HttpServletRequest request = mock(HttpServletRequest.class); when(request.getParameter("login_hint")).thenReturn(null); UaaAuthenticationDetails details = new UaaAuthenticationDetails(request, null); assertNull(details.getLoginHint()); }