@Test
public void testUpdateEventMetadata() throws IOException {

  String jsonString = IOUtils.toString(getClass().getResource("/event-update.json"), UTF_8);
  String expectedJson = IOUtils.toString(getClass().getResource("/event-update-expected.json"), UTF_8);
  String eventId = TestEventsEndpoint.UPDATE_EVENT;
  given().multiPart("metadata", jsonString).pathParam("event_id", eventId).expect().statusCode(SC_NO_CONTENT)
          .when().post(env.host("{event_id}"));
  MetadataList actualMetadataList = TestEventsEndpoint.getCapturedMetadataList1().getValue();
  assertThat(MetadataJson.listToJson(actualMetadataList, true).toString(), SameJSONAs.sameJSONAs(expectedJson).allowingAnyArrayOrdering());
}