@Test
public void test_getCurrentPolicies_successfully_ldap() throws IOException {

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