@Test
public void testGetAlarmAlerts() {

    Alert.Alerts result = new Alert.Alerts();
    result.setValues(Arrays.asList(TestUtils.getDefaultAlert(), TestUtils.getDefaultAlert()));
    when(restTemplate.getForObject(DEFAULT_SEYREN_URL + SeyrenRepository.API_ALARMS + "/alarmId/alerts?start=0&items=10",Alert.Alerts.class)).thenReturn(result);
    Alert.Alerts alerts = repository.getAlarmAlerts("alarmId",0,10);
    assertNotNull(alerts);
    assertTrue(alerts.getValues().size()==result.getValues().size());
    assertArrayEquals(result.getValues().toArray(),alerts.getValues().toArray());
}