@Test
public void updateIdentityGroupByName() throws Exception {

    String token = "4EpPYDSfgN2D4Gf7UmNO3nuL";
    String name = "name";
    OIDCIdentityGroupRequest oidcIdentityGroupRequest = new OIDCIdentityGroupRequest();
    oidcIdentityGroupRequest.setMember_group_ids(null);
    oidcIdentityGroupRequest.setMember_entity_ids(null);
    Map<String, String> metadata = new HashMap<String, String>();
    metadata.put("organization", "t-vault");
    oidcIdentityGroupRequest.setMetadata(metadata);
    oidcIdentityGroupRequest.setPolicies(null);
    oidcIdentityGroupRequest.setName(name);
    String jsonStr = JSONUtil.getJSON(oidcIdentityGroupRequest);
    Response response = getMockResponse(HttpStatus.OK, true, "{\"data\": [\"safeadmin\",\"vaultadmin\"]]");
    String canonicalId ="123-333-33as";
    when(OIDCUtil.updateIdentityGroupByName(token, oidcIdentityGroupRequest)).thenReturn(canonicalId);
    ResponseEntity<String> responseEntity = oidcAuthService.updateIdentityGroupByName(token,
            oidcIdentityGroupRequest);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(canonicalId, responseEntity.getBody());
}