	@Test
	public void loginSuccessfull() throws Exception {


		Mockito.when(manager.authenticate(request)).thenReturn(request);

		final SecurityContext securityContext = Mockito
		        .mock(SecurityContext.class);
		SecurityContextHolder.setContext(securityContext);
		setCredentials(username, password);
		loginBean.login(null);
		assertEquals(loginBean.login(), AdministratorLoginBean.INDEX_PAGE);
		Mockito.verify(securityContext).setAuthentication(request);
		verifyLoginManager();
	}