@Test
public void testGetEventAccessInformation() throws Exception {

  String eventAccessJson = IOUtils.toString(getClass().getResource("/eventAccess.json"));
  given().pathParam("eventId", "notExists").expect().statusCode(HttpStatus.SC_NOT_FOUND).when()
          .get(rt.host("{eventId}/access.json"));
  JSONObject result = (JSONObject) new JSONParser().parse(given().pathParam("eventId", "asdasd").expect()
          .statusCode(HttpStatus.SC_OK).when().get(rt.host("{eventId}/access.json")).asString());
  // Fix ordering for embedded acl json string
  String expectedAclString = getAclString(eventAccessJson);
  String aclString = getAclString(result.toJSONString());
  assertThat(expectedAclString, SameJSONAs.sameJSONAs(aclString));
  JSONObject episodeAccess = (JSONObject) result.get("episode_access");
  episodeAccess.replace("acl", expectedAclString);
  assertThat(eventAccessJson, SameJSONAs.sameJSONAs(result.toJSONString()));
}