@Test
public void shouldWriteParameterEntryHeaderUsingLevelNames() throws Exception {

    // given
    Level[] levels = new Level[]{
        level().withName("one").build(),
        level().withName("two").build()
    };
    Parameter parameter = parameter().withLevels(levels).build();
    StringWriter writer = new StringWriter();
    // when
    serializer.serialize(config, writer, parameter, entryBatchLoader);
    // then
    assertThat(writer.toString()).containsOnlyOnce("one;two");
}