@Test
public void test_getSelfServiceToken_failure() throws Exception {

    String jsonStr = "{\"username\":\"testadmin\",\"password\":\"testadmin\"}";
    ReflectionTestUtils.setField(tokenUtils, "selfserviceUsername", "dGVzdGFkbWlu");
    ReflectionTestUtils.setField(tokenUtils, "selfservicePassword", "dGVzdGFkbWlu");
    ReflectionTestUtils.setField(tokenUtils, "vaultAuthMethod", "userpass");
    when(JSONUtil.getJSON(Mockito.any())).thenReturn(jsonStr);
    Response response = getMockResponse(HttpStatus.NOT_FOUND, true, "");
    when(reqProcessor.process("/auth/userpass/login",jsonStr,"")).thenReturn(response);
    String token = tokenUtils.getSelfServiceToken();
    assertNull(token);
}