@JsonProperty("max_size")
    public abstract long maxSize();
@Test
    public void testDeserialization() throws IOException {
        final ObjectMapper objectMapper = new ObjectMapperProvider().get();
        final String json = "{ \"type\": \"org.graylog2.indexer.rotation.strategies.SizeBasedRotationStrategyConfig\", \"max_size\": 1000 }";
        final RotationStrategyConfig config = objectMapper.readValue(json, RotationStrategyConfig.class);

        assertThat(config).isInstanceOf(SizeBasedRotationStrategyConfig.class);
        assertThat(((SizeBasedRotationStrategyConfig) config).maxSize()).isEqualTo(1000);
    }