@Test
public void testUpdateAlarm() {

    Alarm alarm = TestUtils.getDefaultAlarm();
    doNothing().when(restTemplate).put(anyString(), anyObject(), any(String.class));
    repository.updateAlarm(alarm);
    verify(restTemplate).put(DEFAULT_SEYREN_URL + SeyrenRepository.API_ALARMS+"/"+alarm.getId(), alarm, String.class);
}