@Test
public void shouldInsertNewParameterWithLevelsAndEntries() {

    // given
    Level[] levels = new Level[]{
        level().withName("level").withType("string").build(),
        level().withName("level").withType("string").build()
    };
    ParameterEntry[] entries = new ParameterEntry[]{
        parameterEntry().withLevels("test").build(),
        parameterEntry().withLevels("test").build(),
        parameterEntry().withLevels("test").build()
    };
    Parameter parameter = parameter().withName("parameter").withLevels(levels).withEntries(entries).build();
    SimpleJdbcRepository repository = get(SimpleJdbcRepository.class);
    QueryRunner runner = queryRunner();
    // when
    repository.createParameter(runner, parameter);
    runner.close();
    // then
    assertDatabase().hasParameter("parameter").hasLevelsForParameter("parameter", 2)
            .hasEntriesForParameter("parameter", 3).close();
}