@Test
public void generateEmailToken() {
VerificationToken token = new VerificationToken(new User(), VerificationToken.VerificationTokenType.emailVerification, 120);
when(verificationTokenService.generateEmailVerificationToken("test@example.com")).thenReturn(token);
ClientResponse response = super.resource().path("verify/tokens").entity(new EmailVerificationRequest("test@example.com"), APPLICATION_JSON)
.accept(APPLICATION_JSON).post(ClientResponse.class);
assertThat(response.getStatus(), is(200));
}