### Question:
AlarmClockLogic implements RunnableService { protected List<Alarm> getAllAlarms() { List<Alarm> alarmList = this.alarmStorage.getAll(); alarmList.sort((alarm1, alarm2) -> alarm1.getId() - alarm2.getId()); return alarmList; }  String stopRinging(); @Override void start(); @Override void stop();  }### Answer:
@Test protected void testGetAllAlarms() { createAlarms(3, true); List<Alarm> returnedAlarms = this.acl.getAllAlarms(); assertThat(returnedAlarms, hasSize(3)); }
@Test protected void testGetAllAlarmsNoAlarms() { List<Alarm> returnedAlarms = this.acl.getAllAlarms(); assertThat(returnedAlarms, hasSize(0)); }