@Test
public void shouldWriteNewParameterIntoDatabase() {

    // given
    Level[] levels = new Level[]{level().withName("lvl1").withType("string").build()};
    ParameterEntry[] entries = new ParameterEntry[]{parameterEntry().withLevels("A").build()};
    Parameter parameter = parameter().withName("parameter").withLevels(levels).withEntries(entries).build();
    JdbcParamRepository repository = get(JdbcParamRepository.class);
    // when
    repository.write(parameter);
    // then
    assertDatabase().hasParameter("parameter").hasEntriesForParameter("parameter", 1).hasLevelsForParameter("parameter", 1).close();
}