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