    @Test
    public void testFailLogin() {

        accountResource.uriInfo = new ResteasyUriInfo("account/login", "", "");

        String header = "hmac test:testing";
        when(accountService.authenticate("test", "testing")).thenReturn(Optional
            .empty());
        Response response = accountResource.login(header);
        assertThat(response.getStatus()).isEqualTo(401);
    }