@Test
public void testGetEventWorkflow() throws Exception {

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