public T findAndRemove(Bson filter) {
        return delegate.findOneAndDelete(filter);
    }
@Test
    void findAndRemove() {
        final var collection = jacksonCollection("simple", Simple.class);

        final var foo = new Simple("000000000000000000000001", "foo");
        final var bar = new Simple("000000000000000000000002", "bar");

        collection.insert(List.of(foo, bar));

        assertThat(collection.findAndRemove(DBQuery.is("_id", objectId(foo.id())))).isEqualTo(foo);
        assertThat(collection.findAndRemove(DBQuery.is("_id", objectId(bar.id())))).isEqualTo(bar);
        assertThat(collection.count()).isZero();
    }