@Test
public void getNonExistentAlarm() {

    Alarm alarm = null;
    try {
        alarm = alarmService.getAlarm(TestUtils.NONEXISTING_ALARM_ID);
        fail("Get a nonexistent alarm should throw an exception");
    } catch (CerebroException e) {
        assertNull(alarm);
        assertEquals(ErrorCode.ALARM_UNKNOWN, e.getErrorCode());
    }
}