@Test
public void testGetAllAlarms() {

    Alarm.Alarms result = new Alarm.Alarms();
    result.setValues(Arrays.asList(TestUtils.getDefaultAlarm(), TestUtils.getDefaultAlarm()));
    when(restTemplate.getForObject(DEFAULT_SEYREN_URL + SeyrenRepository.API_ALARMS,Alarm.Alarms.class)).thenReturn(result);
    Alarm.Alarms alarms = repository.getAllAlarms();
    assertNotNull(alarms);
    assertTrue(alarms.getValues().size()==result.getValues().size());
    assertArrayEquals(result.getValues().toArray(),alarms.getValues().toArray());
}