@Test
  public void getUserMetadataTest() throws Exception {
    byte[] usermetadata = RestUtils.buildUserMetadata(new HashMap<>());
    assertArrayEquals("Unexpected user metadata", new byte[0], usermetadata);
  }
Tests building of user metadata.
@throws Exception
ambry-api/src/test/java/com/github/ambry/rest/RestUtilsTest.java