### Question:
RestartStuckChecker { public static boolean isStuck(String containerId) { List<LocalDateTime> datesOfRestart = restarts.computeIfAbsent(containerId, k -> new ArrayList<>()); LocalDateTime now = LocalDateTime.now(); datesOfRestart.removeIf(dateOfRestart -> dateOfRestart.isBefore(now.minusMinutes(INTERVAL_IN_MINUTES))); datesOfRestart.add(now); return datesOfRestart.size() >= ABNORMAL_NUMBER_OF_RESTARTS; }  static boolean isStuck(String containerId);  }### Answer:
@Test public void testIsStuckFirstTime() { assertFalse(RestartStuckChecker.isStuck("containerId")); }
@Test public void testIsStuckSixthTime() { for (int i =1 ; i<=5 ; i++){ RestartStuckChecker.isStuck("uuid"); } assertTrue(RestartStuckChecker.isStuck("uuid")); }