@Test
public void test_getCurrentPolicies_failure() throws IOException {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    ReflectionTestUtils.setField(policyUtils, "vaultAuthMethod", "userpass");
    Response response =  getMockResponse(HttpStatus.OK, true, "{\"data\":{\"policies\":\"s_shared_mysafe01,s_shared_mysafe02\"}}");
    when(ControllerUtil.getReqProcessor().process("/auth/userpass/read","{\"username\":\"normaluser\"}",token)).thenReturn(response);
    when(ControllerUtil.getPoliciesAsStringFromJson(Mockito.any(), eq("{\"data\":{\"policies\":\"s_shared_mysafe01,s_shared_mysafe02\"}}"))).thenThrow(IOException.class);
    String[] policies = policyUtils.getCurrentPolicies(token, "normaluser", getMockUser(true));
    String[] expectedPolicies = {};
    assertEquals(expectedPolicies, policies);
}