### Question:
LoginProcess { public boolean isSuccessful() { return AuthContext.Status.SUCCESS.equals(authContext.getStatus()); } LoginProcess(LoginAuthenticator loginAuthenticator, LoginConfiguration loginConfiguration,
            AuthenticationContext authContext, CoreServicesWrapper coreServicesWrapper); LoginStage getLoginStage(); Callback[] getCallbacks(); PagePropertiesCallback getPagePropertiesCallback(); LoginProcess next(Callback[] callbacks); boolean isSuccessful(); boolean isFailed(); SSOToken getSSOToken(); String getSuccessURL(); String getFailureURL(); String getOrgDN(); AuthenticationContext getAuthContext(); LoginConfiguration getLoginConfiguration(); void cleanup();  }### Answer:
@Test public void shouldGetIsSuccessfulWhenAuthContextIsSuccess() { given(authContext.getStatus()).willReturn(AuthContext.Status.SUCCESS); boolean success = loginProcess.isSuccessful(); assertTrue(success); }
@Test public void shouldGetIsSuccessfulWhenAuthContextNotSuccess() { given(authContext.getStatus()).willReturn(AuthContext.Status.FAILED); boolean success = loginProcess.isSuccessful(); assertFalse(success); }