@Override
    public void serialize(ValueType value, JsonGenerator gen, SerializerProvider provider) throws IOException {
        gen.writeString(value.name().toLowerCase(Locale.ROOT));
    }
@Test
    public void serialize() throws JsonProcessingException {
        assertThat(objectMapper.writeValueAsString(ValueType.BOOLEAN)).isEqualTo("\"boolean\"");
        assertThat(objectMapper.writeValueAsString(ValueType.DOUBLE)).isEqualTo("\"double\"");
        assertThat(objectMapper.writeValueAsString(ValueType.FLOAT)).isEqualTo("\"float\"");
        assertThat(objectMapper.writeValueAsString(ValueType.INTEGER)).isEqualTo("\"integer\"");
        assertThat(objectMapper.writeValueAsString(ValueType.LONG)).isEqualTo("\"long\"");
        assertThat(objectMapper.writeValueAsString(ValueType.STRING)).isEqualTo("\"string\"");
        assertThat(objectMapper.writeValueAsString(ValueType.PARAMETER)).isEqualTo("\"parameter\"");
    }