@Test
void logValue() {

    assertThat(new BsonLogParam(Filters.eq("field", TestUnregisteredEnum.V1), MongoClientSettings.getDefaultCodecRegistry()).logValue())
            .contains("V1");
    assertThat(new BsonLogParam(null, MongoClientSettings.getDefaultCodecRegistry()).logValue())
            .isEqualTo("null");
}