### Question:
TimerSpeech { @Intent public String reactivateTimer(Map<String, EntityData> entities) { Timer timer = this.timerLogic.getTimer(entities.get(NUMBER_MAP_KEY).getNumber()); this.timerLogic.reactivateTimer(timer); return timerS + timer.getId() + " resumed"; }  @Intent String setTimer(Map<String, EntityData> entities); @Intent String pauseTimer(Map<String, EntityData> entities); @Intent String reactivateTimer(Map<String, EntityData> entities); @Intent String resetTimerObjects(Map<String, EntityData> entities); @Intent String deleteTimerObject(Map<String, EntityData> entities); @Intent String stopRinging(Map<String, EntityData> entities); @Intent String getTimerObject(Map<String, EntityData> entities); @Intent String getAllTimerObjects(Map<String, EntityData> entities); @Intent String getRemainingTimerDelay(Map<String, EntityData> entities);  }### Answer:
@Test public void reactivateTimerTest() { Map<String, EntityData> map = new HashMap<>(); map.put("number", this.number); when(map.get("number").getNumber()).thenReturn(1); LocalDateTime timerDate = LocalDateTime.now().plusHours(this.hour.getNumber()) .plusMinutes(this.minute.getNumber()).plusSeconds(this.second.getNumber()) .truncatedTo(ChronoUnit.SECONDS); Timer t = new Timer(1, timerDate, null, false); when(this.tLogic.getTimer(1)).thenReturn(t); assertThat(this.tSpeech.reactivateTimer(map), is("Timer 1 resumed")); }