@Test void demo() { String problemName = "xy"; webSocketController.demo(problemName); verify(demoService).loadDemo(problemName); }
@MessageMapping("/demo/{name}") void demo(@DestinationVariable String name) { demoService.loadDemo(name); }
WebSocketController { @MessageMapping("/demo/{name}") void demo(@DestinationVariable String name) { demoService.loadDemo(name); } }
WebSocketController { @MessageMapping("/demo/{name}") void demo(@DestinationVariable String name) { demoService.loadDemo(name); } @Autowired  WebSocketController(
            RouteListener routeListener,
            RegionService regionService,
            LocationService locationService,
            VehicleService vehicleService,
            DemoService demoService,
            ApplicationEventPublisher eventPublisher); }
WebSocketController { @MessageMapping("/demo/{name}") void demo(@DestinationVariable String name) { demoService.loadDemo(name); } @Autowired  WebSocketController(
            RouteListener routeListener,
            RegionService regionService,
            LocationService locationService,
            VehicleService vehicleService,
            DemoService demoService,
            ApplicationEventPublisher eventPublisher);  }
WebSocketController { @MessageMapping("/demo/{name}") void demo(@DestinationVariable String name) { demoService.loadDemo(name); } @Autowired  WebSocketController(
            RouteListener routeListener,
            RegionService regionService,
            LocationService locationService,
            VehicleService vehicleService,
            DemoService demoService,
            ApplicationEventPublisher eventPublisher);   }