AlarmService { public Collection<Alarm> getAllAlarms() { return seyrenRepository.getAllAlarms().getValues(); }  Alarm getAlarm(String id); Collection<Alarm> getAllAlarms(); Alarm subscribeToAAlarm(final Alarm alarm); Alarm searchAlarm(final Alarm alarm); Collection<Alarm> searchAlarmsBySubscriptionTarget(String subTarget); Alarm updateAlarm(final Alarm alarm);  }
@Test public void getAllAlarms() throws Exception { Collection<Alarm> allAlarms = alarmService.getAllAlarms(); assertEquals(allAlarms.size(), 1); }