### Question:
KeycloakAuthenticationEntryPoint implements AuthenticationEntryPoint { public void setLoginUri(String loginUri) { Assert.notNull(loginUri, "loginUri cannot be null"); this.loginUri = loginUri; } KeycloakAuthenticationEntryPoint(AdapterDeploymentContext adapterDeploymentContext);  KeycloakAuthenticationEntryPoint(AdapterDeploymentContext adapterDeploymentContext, RequestMatcher apiRequestMatcher); @Override void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException); void setLoginUri(String loginUri); void setRealm(String realm); static final String DEFAULT_LOGIN_URI; }### Answer:
@Test public void testSetLoginUri() throws Exception { configureBrowserRequest(); final String logoutUri = "/foo"; authenticationEntryPoint.setLoginUri(logoutUri); authenticationEntryPoint.commence(request, response, null); assertEquals(HttpStatus.FOUND.value(), response.getStatus()); assertEquals(logoutUri, response.getHeader("Location")); }