EndpointController { @RequestMapping(value = "/start", method = RequestMethod.PUT) public @ResponseBody void start() { inboundChannelAdapterEndpointStarter.start(); }  @RequestMapping(value = "/start", method = RequestMethod.PUT) @ResponseBody void start();  }
@Test public void testStart() { sut.start(); verify(inboundChannelAdapterEndpointStarter, times(1)).start(); }