@Test
public void testUpdateEventMetadata() throws Exception {

  String metadataJson = IOUtils.toString(getClass().getResource("/eventMetadata.json"));
  given().pathParam("eventId", "notExists").formParam("metadata", "metadata").expect()
          .statusCode(HttpStatus.SC_NOT_FOUND).when().put(rt.host("{eventId}/metadata"));
  given().pathParam("eventId", "asdasd").formParam("metadata", metadataJson).expect().statusCode(HttpStatus.SC_OK)
          .when().put(rt.host("{eventId}/metadata"));
}