BloomFilterHttpService { @Delete("/{name}") public HttpResponse remove(@Param String name) { bloomFilterManager.remove(name); return HttpResponse.of(HttpStatus.OK); } BloomFilterHttpService(BloomFilterManager<?, ? super ExpirableBloomFilterConfig> bloomFilterManager); @Put("/{name}") HttpResponse create(@Param String name,
                               @RequestObject JsonNode req); @Get("/{name}") JsonNode getFilterInfo(@Param String name); @Get("/list") JsonNode list(); @Post("/{name}/check") JsonNode check(@Param String name,
                          @RequestObject JsonNode req); @Post("/{name}/multi-check") JsonNode multiCheck(@Param String name,
                               @RequestObject JsonNode req); @Post("/{name}/check-and-set") JsonNode checkAndSet(@Param String name,
                                @RequestObject JsonNode req); @Post("/{name}/multi-check-and-set") JsonNode multiCheckAndSet(@Param String name,
                                     @RequestObject JsonNode req); @Delete("/{name}") HttpResponse remove(@Param String name);  }
@Test public void testRemove() throws Exception { final AggregatedHttpResponse res = service.remove(testingFilterName).aggregate().get(); assertThat(res.status()).isEqualTo(HttpStatus.OK); verify(mockedManager).remove(testingFilterName); }