@Test
public void testSetAlertsMapById(){

    Map<BigInteger, Alert> alertMapById = new HashMap<>();
    Alert alert1 = new Alert(userService.findAdminUser(), admin, "testAlert1", "COUNT(-1h:scope:metric:avg, -1h:scope:metric:avg, -1h:scope:metric:avg)", "* * * * *");
    alertMapById.put(new BigInteger("1"), alert1);
    Alert alert2 = new Alert(userService.findAdminUser(), admin, "testAlert2", "COUNT(-1h:scope:metric:avg, -1h:scope:metric:avg, -1h:scope:metric:avg)", "* * * * *");
    alertMapById.put(new BigInteger("2"), alert2);
    alertDefinitionsCache.setAlertsMapById(alertMapById);
    assertTrue(alertDefinitionsCache.getAlertsMapById() == alertMapById);
}