String key2 = "testkey2";
String value2 = "testvalue2";
LinkedHashMap<String, String> codes = new LinkedHashMap<String, String>();
codes.put(key1, value1);
codes.put(key2, value2);
BoxUserRequestObject obj = getUserRequestObject(notify, name, role, language, sync, title, phone, address, space, codes, seeManaged, exemptLimit,
exemptLogin);
if (removeEnterprise) {
obj.setEnterprise(null);
}
obj.setMaxUploadSize(1000d);
obj.setAvatarUrl("http://testboxavatarurl.com");
obj.setMyTags("mytaga","mytagb");
UpdateUserRequest request = new UpdateUserRequest(CONFIG, JSON_PARSER, userId, obj);
testRequestIsWellFormed(request, TestUtils.getConfig().getApiUrlAuthority(),
TestUtils.getConfig().getApiUrlPath().concat(UpdateUserRequest.getUri(userId)), HttpStatus.SC_OK, RestMethod.PUT);
Assert.assertEquals(Boolean.toString(notify), request.getQueryParams().get("notify"));