@JsonCreator
    public static MessageCountRotationStrategyConfig create(@JsonProperty(TYPE_FIELD) String type,
                                                            @JsonProperty("max_docs_per_index") @Min(1) int maxDocsPerIndex) {
        return new AutoValue_MessageCountRotationStrategyConfig(type, maxDocsPerIndex);
    }
@Test
    public void testCreate() throws Exception {
        final MessageCountRotationStrategyConfig config = MessageCountRotationStrategyConfig.create(1000);
        assertThat(config.maxDocsPerIndex()).isEqualTo(1000);
    }