@Test
public void test_updateUserPolicyAssociationOnSDBDelete_oidc_successfully() {

    String token = "7QPMPIGiyDFlJkrK3jFykUqa";
    String userName = "testuser1";
    Response userResponse = getMockResponse(HttpStatus.OK, true, "{\"data\":{\"bound_cidrs\":[],\"max_ttl\":0,\"policies\":[\"approle_normal_user\",\"w_users_safe01\"],\"ttl\":0}}");
    when(reqProcessor.process("/auth/userpass/read","{\"username\":\""+userName+"\"}",token)).thenReturn(userResponse);
    ReflectionTestUtils.setField(ControllerUtil.class,"vaultAuthMethod", "oidc");
    Map<String,String> acessInfo = new HashMap<>();
    acessInfo.put("testuser1", "write");
    
    OIDCEntityResponse oidcEntityResponse = new OIDCEntityResponse();
dcEntityResponse.setEntityName("entity");
st<String> policies = new ArrayList<>();
licies.add("safeadmin");
dcEntityResponse.setPolicies(policies);
    ResponseEntity<OIDCEntityResponse> responseEntity2 = ResponseEntity.status(HttpStatus.OK)
.body(oidcEntityResponse);
en(tokenUtils.getSelfServiceTokenWithAppRole()).thenReturn(token);
erDetails userDetails = new UserDetails();
    userDetails.setUsername("testuser1");
sponse responseEntity3 = getMockResponse(HttpStatus.NO_CONTENT, true, "{\"data\": [\"safeadmin\",\"vaultadmin\"]]");
en(oidcUtil.updateOIDCEntity(any(), any()))
.thenReturn(responseEntity3);
en(oidcUtil.oidcFetchEntityDetails(any(), any(), any())).thenReturn(responseEntity2);
    ControllerUtil.updateUserPolicyAssociationOnSDBDelete("users/safe01", acessInfo,  token, userDetails);
    assertTrue(true);
}