HiveIndexer indexer = new HiveIndexer(hive);
WeatherReport report = generateInstance();
Integer oldTemp = report.getTemperature();
indexer.insert(getWeatherReportConfig(report), report);
assertWeatherReportResourceIdsOfPrimaryIndexKey("WeatherReport", report);
assertTrue(hive.directory().doesResourceIdExist("Temperature", report.getTemperature()));
GeneratedInstanceInterceptor.setProperty(report, "temperature", 32);
indexer.update(getWeatherReportConfig(report), report);
assertEquals(report.getContinent(), hive.directory().getPrimaryIndexKeyOfResourceId("Temperature", 32));
}