NgsiRestController extends NgsiRestBaseController { @Override protected UpdateContextSubscriptionResponse updateSubscription(UpdateContextSubscription updateContextSubscription) throws Exception { return ngsiController.updateContextSubscription(updateContextSubscription); }    }
@Test public void testUpdateSubscription() throws Exception { mockMvc.perform(put("/v1/contextSubscriptions/12345678") .content(json(mapper, createUpdateSubscribeContext())) .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()); verify(ngsiController).updateContextSubscription(any()); }