EventResource { @DELETE @Path("/{name}") @ApiOperation("Remove an event handler") public void removeEventHandlerStatus(@PathParam("name") String name) { eventService.removeEventHandlerStatus(name); } @Inject  EventResource(EventService eventService); @POST @ApiOperation("Add a new event handler.") void addEventHandler(EventHandler eventHandler); @PUT @ApiOperation("Update an existing event handler.") void updateEventHandler(EventHandler eventHandler); @DELETE @Path("/{name}") @ApiOperation("Remove an event handler") void removeEventHandlerStatus(@PathParam("name") String name); @GET @ApiOperation("Get all the event handlers") List<EventHandler> getEventHandlers(); @GET @Path("/{event}") @ApiOperation("Get event handlers for a given event") List<EventHandler> getEventHandlersForEvent(@PathParam("event") String event,
                                                       @QueryParam("activeOnly") @DefaultValue("true") boolean activeOnly); @GET @Path("/queues") @ApiOperation("Get registered queues") Map<String, ?> getEventQueues(@QueryParam("verbose") @DefaultValue("false") boolean verbose); @GET @Path("/queues/providers") @ApiOperation("Get registered queue providers") List<String> getEventQueueProviders();  }
@Test public void testRemoveEventHandlerStatus() { eventResource.removeEventHandlerStatus("testEvent"); verify(mockEventService, times(1)).removeEventHandlerStatus(anyString()); }