@Test
public void test_getAlarm() throws Exception{

    when(alarmMapper.mapToPresentation((Alarm)anyObject())).thenReturn(getAlarm("test"));
    mockMvc.perform(get("/alarms/test")).andExpect(status().isOk())
        .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
        .andExpect(jsonPath("$.alarm.id",is("test")))
        .andExpect(jsonPath("$.alarm.name",is("name")))
        .andExpect(jsonPath("$.alarm.target",is("target")));
}