### Question:
LoginProcess { public PagePropertiesCallback getPagePropertiesCallback() { PagePropertiesCallback pagePropertiesCallback = null; for (Callback callback : authContext.getRequirements(true)) { if (callback instanceof PagePropertiesCallback) { pagePropertiesCallback = (PagePropertiesCallback) callback; break; } } return pagePropertiesCallback; } 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 shouldGetPagePropertiesCallback() { Callback callbackOne = mock(Callback.class); Callback callbackTwo = mock(PagePropertiesCallback.class); Callback callbackThree = mock(Callback.class); Callback[] callbacks = new Callback[]{callbackOne, callbackTwo, callbackThree}; given(authContext.getRequirements(true)).willReturn(callbacks); PagePropertiesCallback pagePropertiesCallback = loginProcess.getPagePropertiesCallback(); verify(authContext).getRequirements(true); Assert.assertEquals(pagePropertiesCallback, callbackTwo); }