@Test
public void testCreateTheme() throws ParseException, IOException {

  String themesString = IOUtils.toString(getClass().getResource("/theme-create.json"), "UTF-8");
  Boolean isDefault = true;
  String name = "New Theme Name";
  String description = "New Theme Description";
  Boolean bumperActive = true;
  String bumperFile = "bumper-file";
  Boolean trailerActive = true;
  String trailerFile = "trailer-file";
  Boolean titleSlideActive = true;
  String titleSlideBackground = "title-background";
  String titleSlideMetadata = "title-metadata";
  Boolean licenseSlideActive = true;
  String licenseSlideBackground = "license-background";
  String licenseSlideDescription = "license-description";
  Boolean watermarkActive = true;
  String watermarkPosition = "watermark-position";
  String watermarkFile = "watermark-file";
  String result = given().formParam("default", isDefault.toString()).formParam("name", name)
          .formParam("description", description).formParam("bumperActive", bumperActive.toString())
          .formParam("bumperFile", bumperFile).formParam("trailerActive", trailerActive.toString())
          .formParam("trailerFile", trailerFile).formParam("titleSlideActive", titleSlideActive.toString())
          .formParam("titleSlideBackground", titleSlideBackground)
          .formParam("titleSlideMetadata", titleSlideMetadata).formParam("licenseSlideActive", licenseSlideActive)
          .formParam("licenseSlideBackground", licenseSlideBackground)
          .formParam("licenseSlideDescription", licenseSlideDescription)
          .formParam("watermarkActive", watermarkActive).formParam("watermarkPosition", watermarkPosition)
          .formParam("watermarkFile", watermarkFile).expect().statusCode(HttpStatus.SC_OK).when().post(rt.host("/"))
          .asString();
  JSONObject theme = ((JSONObject) parser.parse(result));
  // Make sure the creationDate property exists
  assertTrue(StringUtils.trimToNull(theme.get("creationDate").toString()) != null);
  // Remove it from the results
  theme.remove("creationDate");
  logger.info("Expected" + themesString);
  logger.info("Result: " + theme.toJSONString());
  assertThat(themesString, SameJSONAs.sameJSONAs(theme.toJSONString()).allowingAnyArrayOrdering());
}