@JsonCreator
    public static ClosingRetentionStrategyConfig create(@JsonProperty(TYPE_FIELD) String type,
                                                        @JsonProperty("max_number_of_indices") @Min(1) int maxNumberOfIndices) {
        return new AutoValue_ClosingRetentionStrategyConfig(type, maxNumberOfIndices);
    }
@Test
    public void testCreate() throws Exception {
        final ClosingRetentionStrategyConfig config = ClosingRetentionStrategyConfig.create(12);

        assertThat(config.maxNumberOfIndices()).isEqualTo(12);
    }