@JsonCreator
    public static SizeBasedRotationStrategyConfig create(@JsonProperty(TYPE_FIELD) String type,
                                                         @JsonProperty("max_size") @Min(1) long maxSize) {
        return new AutoValue_SizeBasedRotationStrategyConfig(type, maxSize);
    }
@Test
    public void testCreate() throws Exception {
        final SizeBasedRotationStrategyConfig config = SizeBasedRotationStrategyConfig.create(1000L);
        assertThat(config.maxSize()).isEqualTo(1000L);
    }