@Test
public void test_getVaultTokenLookupDetails_failure_500() throws TVaultValidationException, IOException {

    String token = "7QPMPIGiyDFlJkrK3jFykUqa";
    Response response = getMockResponse(HttpStatus.INTERNAL_SERVER_ERROR, true, "");
    VaultTokenLookupDetails expectedLookupDetails = new VaultTokenLookupDetails();
    expectedLookupDetails.setAdmin(false);
    expectedLookupDetails.setValid(true);
    expectedLookupDetails.setToken(token);
    expectedLookupDetails.setUsername(null);
    String [] policies = {"default"};
    ArrayList<String> adminPolicies = new ArrayList<>();
    adminPolicies.add("adminpolicy");
    expectedLookupDetails.setPolicies(policies);
    when(reqProcessor.process("/auth/tvault/lookup","{}", token)).thenReturn(response);
    try {
        VaultTokenLookupDetails lookupDetails = tokenValidator.getVaultTokenLookupDetails(token);
    }catch (TVaultValidationException t) {
        assertTrue(true);
    }
}