@Test
public void shouldNormalizeGivenMapEntry() {

    // given
    Parameter parameter = parameter()
            .withLevels(level().withName("level").withType("string").build())
            .build();
    MapEntry denormalized = new MapEntry();
    denormalized.put("level", SortDirection.ASC);
    // when
    MapEntry normalized = paramEditor.normalize(parameter, denormalized);
    // then
    assertThat(normalized.get("level")).isEqualTo("ASC");
}