@Test
public void testVerifyLink() throws Exception {

	when(
			accountVerificationService
					.isAccountVerificationTokenExpired(anyString()))
			.thenReturn(true);
	mockMvc.perform(
			get("/verifyLink.html?token=914653028441015461098868301011413486798"))
			.andExpect(status().isOk())
			.andExpect(view().name("views/signupVerification"));
	when(
			accountVerificationService
					.isAccountVerificationTokenExpired(anyString()))
			.thenReturn(false);
	mockMvc.perform(
			get("/verifyLink.html?token=914653028441015461098868301011413486798"))
			.andExpect(redirectedUrl("/index.html"));
}