@Test
public void testCreateAlreadyExistsFilter() throws Exception {

    final ObjectNode request = mapper.createObjectNode();
    final ExpirableBloomFilterConfig expectConfig = new ExpirableBloomFilterConfig();
    final GuavaBloomFilter expectedFilter = factory.createFilter(expectConfig);
    final CreateFilterResult<GuavaBloomFilter> result = new CreateFilterResult<>(expectedFilter, false);
    when(mockedManager.createFilter(testingFilterName, expectConfig)).thenReturn(result);
    final AggregatedHttpResponse response = service.create(testingFilterName, request).aggregate().get();
    assertThat(response.status().code()).isEqualTo(HttpStatus.OK.code());
    final JsonNode responseInJson = mapper.readTree(response.content(StandardCharsets.UTF_8));
    final GuavaBloomFilter filter = new ObjectMapper()
            .readerFor(GuavaBloomFilter.class)
            .readValue(responseInJson);
    assertThat(filter).isNotNull().isEqualTo(expectedFilter);
}