@Test
public void test_getSubscription() throws Exception{

    when(subscriptionService.getSubscription(anyString(),anyString())).thenReturn(getSubscription("subscriptionId"));
    mockMvc.perform(get("/alarms/alarmId/subscriptions/subscriptionId")).andExpect(status().isOk())
        .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
        .andExpect(jsonPath("$.id",is("subscriptionId")));
}