@Test
public void updateIdentityGroupByNameSuccess(){

	String token = "Adadsadasdasd";
	String responseJson = "{\"data\":{\"id\": \"canonicalID\"}}";
	Response responsemock = getMockResponse(HttpStatus.OK, true, "canonicalID");
	OIDCIdentityGroupRequest oidcIdentityGroupRequest = new OIDCIdentityGroupRequest();
	oidcIdentityGroupRequest.setName("name");
	List<String> policies = new ArrayList<>();
	policies.add("safeadmin");
	oidcIdentityGroupRequest.setPolicies(policies);
	Response rsResponse = getMockResponse(HttpStatus.OK, true, responseJson);
	String jsonStr = JSONUtil.getJSON(oidcIdentityGroupRequest);
en(reqProcessor.process("/identity/group/name/update", jsonStr, token)).thenReturn(rsResponse);
ring canonicalId = oidcUtil.updateIdentityGroupByName(token, oidcIdentityGroupRequest);
sertEquals(responsemock.getResponse(), canonicalId);
}