assertTrue(hive.directory().doesSecondaryIndexKeyExist("Continent", "population", asia.getPopulation(), asia.getName()));
interceptor.onDelete(report, null, null, null, null);
interceptor.onDelete(asia, null, null, null, null);
assertFalse(hive.directory().doesResourceIdExist("WeatherReport", report.getReportId()));
// Referenced entity does not get deleted
assertTrue(hive.directory().doesResourceIdExist("Temperature", report.getTemperature()));
assertFalse(hive.directory().doesPrimaryIndexKeyExist(asia.getName()));
assertFalse(hive.directory().doesSecondaryIndexKeyExist("Continent", "population", asia.getPopulation(), asia.getName()));