@Test
public void testGetEventMetadata() throws Exception {

  String eventMetadataString = IOUtils.toString(getClass().getResource("/eventMetadata.json"));
  given().pathParam("eventId", "notExists").expect().statusCode(HttpStatus.SC_NOT_FOUND).when()
          .get(rt.host("{eventId}/metadata.json"));
  String result = given().pathParam("eventId", "asdasd").expect().statusCode(HttpStatus.SC_OK).when()
          .get(rt.host("{eventId}/metadata.json")).asString();
  assertThat(eventMetadataString, SameJSONAs.sameJSONAs(result));
}