@Test
public void testGetEventErrors() throws Exception {

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