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

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