public <T extends MongoEntity> MongoCollection<T> collection(String collectionName, Class<T> valueType) {
        return getCollection(collectionName, valueType);
    }
@Test
    void testIdGeneration() {
        final MongoCollection<IdGenerationTest> collection = collections.collection("id-generation-test", IdGenerationTest.class);
        final var testObject = new IdGenerationTest(null);
        final InsertOneResult result = collection.insertOne(testObject);
        final BsonValue insertedId = result.getInsertedId();
        assertThat(insertedId).isNotNull().satisfies(id -> assertThat(id.isObjectId()).isTrue());
        assertThat(collection.find(Filters.eq("_id", insertedId)).first())
                .isEqualTo(new IdGenerationTest(insertedId.asObjectId().getValue().toHexString()));
    }