@Test
public void testMergeMetadataFieldsFirstNull() {

  final JSONObject metadata1 = null;
  final JSONObject metadata2 = loadJsonObject("merge2.json");
  final JSONObject expected = loadJsonObject("merge2.json");
  final JSONObject actual = BulkUpdateUtil.mergeMetadataFields(metadata1, metadata2);
  assertThat(actual.toJSONString(), SameJSONAs.sameJSONAs(expected.toJSONString()));
}