@Test
public void testGetAlarmFailIfAlarmNotFound() {

    when(restTemplate.getForObject(anyString(), eq(Alarm.class))).thenThrow(new ResourceAccessException("coucou"));
    try {
        repository.getAlarm("coucou");
        fail();
    } catch (CerebroException e) {
        assertEquals(ErrorCode.ALARM_UNKNOWN, e.getErrorCode());
    }
}