public <T extends MongoEntity> MongoCollection<T> collection(String collectionName, Class<T> valueType) {
        return getCollection(collectionName, valueType);
    }
@Test
    void testTimestampToJodaDateTimeConversion() {
        final MongoCollection<TimestampTest> collection = collections.collection("timestamp-test", TimestampTest.class);

        final DateTime now = DateTime.now(DateTimeZone.UTC);

        final ObjectId objectId = new ObjectId();
        final Map<String, Object> fields = Map.of(
                "$set", Map.of("_id", objectId),
                "$currentDate", Map.of("timestamp", Map.of("$type", "timestamp"))
        );

        collection.updateOne(Filters.eq("_id", objectId), new BasicDBObject(fields),
                new UpdateOptions().upsert(true));
        final TimestampTest timestampTest = collection.find(Filters.eq("_id", objectId)).first();
        assertThat(timestampTest).isNotNull().satisfies(tt ->
                assertThat(tt.timestamp().getMillis()).isGreaterThanOrEqualTo(
                        now.withMillisOfSecond(0).getMillis())
        );
    }