@Test
public void testGetTheme() throws ParseException {

  // Test invalid id
  given().pathParam("themeId", "asdasd").expect().statusCode(HttpStatus.SC_NOT_FOUND).when()
          .get(rt.host("/{themeId}.json")).asString();
  // Test unknown id
  given().pathParam("themeId", notFoundId).expect().statusCode(HttpStatus.SC_NOT_FOUND).when()
          .get(rt.host("/{themeId}.json")).asString();
  // Test correct id
  String result = given().pathParam("themeId", foundId).expect().statusCode(HttpStatus.SC_OK).when()
          .get(rt.host("/{themeId}.json")).asString();
  JSONObject theme = ((JSONObject) parser.parse(result));
  assertEquals(foundId.toString(), theme.get("id").toString());
  assertEquals("test.mp4", theme.get("bumperFileName").toString());
  assertEquals("http://localhost:8080/staticfiles/uuid1", theme.get("bumperFileUrl").toString());
}