@Test
  public void getUserMetadataGoodInputTest() throws Exception {
    JSONObject headers = new JSONObject();
    setAmbryHeadersForPut(headers, Long.toString(RANDOM.nextInt(10000)), generateRandomString(10),
        Container.DEFAULT_PUBLIC_CONTAINER, "image/gif", generateRandomString(10));
    Map<String, String> userMetadata = new HashMap<String, String>();
    userMetadata.put(RestUtils.Headers.USER_META_DATA_HEADER_PREFIX + "key1", "value1");
    userMetadata.put(RestUtils.Headers.USER_META_DATA_HEADER_PREFIX + "key2", "value2");
    // changed cases
    userMetadata.put(RestUtils.Headers.USER_META_DATA_HEADER_PREFIX.toUpperCase() + "KeY3", "value3");
    userMetadata.put(RestUtils.Headers.USER_META_DATA_HEADER_PREFIX.toLowerCase() + "kEy4", "value4");
    setUserMetadataHeaders(headers, userMetadata);
    verifyUserMetadataConstructionSuccess(headers, userMetadata);
  }
Tests building of User Metadata with good input
@throws Exception
ambry-api/src/test/java/com/github/ambry/rest/RestUtilsTest.java