public <T> MongoCollection<T> nonEntityCollection(String collectionName, Class<T> valueType) {
        return getCollection(collectionName, valueType);
    }
@Test
    void testEncryptedValue() {
        final MongoCollection<Secret> collection = collections.nonEntityCollection("secrets", Secret.class);
        final EncryptedValue encryptedValue = encryptedValueService.encrypt("gary");
        collection.insertOne(new Secret(encryptedValue));
        assertThat(collection.find().first()).isNotNull().satisfies(secret -> {
            final EncryptedValue readValue = secret.encryptedValue();
            assertThat(readValue.isSet()).isTrue();
            assertThat(encryptedValueService.decrypt(readValue)).isEqualTo("gary");
        });
    }