@Override
    public String nameForConstructorParameter(MapperConfig<?> config,
                                              AnnotatedParameter ctorParam,
                                              String defaultName) {
        if (ctorParam == null) {
            return defaultName;
        } else if (ctorParam.getDeclaringClass().isAnnotationPresent(JsonSnakeCase.class)) {
            return snakeCase.nameForConstructorParameter(config, ctorParam, defaultName);
        }
        return super.nameForConstructorParameter(config, ctorParam, defaultName);
    }
@Test
    void nameForConstructorParameterWorksWithNullField() {
        final MapperConfig<?> mapperConfig = mock(MapperConfig.class);
        final String name = strategy.nameForConstructorParameter(mapperConfig, null, "defaultName");
        assertThat(name).isEqualTo("defaultName");
    }