AlertDefinitionsCache { public void setAlertsMapByCronEntry(Map<String, List<BigInteger>> alertsMapByCronEntry) { this.alertsMapByCronEntry = alertsMapByCronEntry; } AlertDefinitionsCache(AlertService alertService);  AlertDefinitionsCache(AlertService alertService, boolean refreshThreadDaemonized);  AlertDefinitionsCache(AlertDefinitionsCacheRefresherThread refresherThread); Map<BigInteger, Alert> getAlertsMapById(); void setAlertsMapById(Map<BigInteger, Alert> alertsMapById); Map<String, List<BigInteger>> getAlertsMapByCronEntry(); void setAlertsMapByCronEntry(Map<String, List<BigInteger>> alertsMapByCronEntry); boolean isAlertsCacheInitialized(); void setAlertsCacheInitialized(boolean alertsCacheInitialized); static List<Alert> getEnabledAlertsForMinute(long minuteStartTimeMillis);  }
@Test public void testSetAlertsMapByCronEntry(){ List<BigInteger> alertsIDList1 = new ArrayList<>(); alertsIDList1.add(new BigInteger("1")); alertsIDList1.add(new BigInteger("2")); Map<String, List<BigInteger>> alertMapByCronEntry = new HashMap<>(); alertMapByCronEntry.put("* * * * *", alertsIDList1); alertDefinitionsCache.setAlertsMapByCronEntry(alertMapByCronEntry); assertTrue(alertDefinitionsCache.getAlertsMapByCronEntry() == alertMapByCronEntry); }