@Test
public void shouldReturnBatchOfParameterEntriesOfGivenSize() {

    // given
    database().withParameter("parameter").withParameterEntries("parameter", 100).build();
    // when
    ParameterEntryDAO parameterEntryDAO = get(ParameterEntryDAO.class);
    QueryRunner runner = queryRunner();
    // when
    List<ParameterEntry> entries = parameterEntryDAO.getParameterEntriesBatch(runner, "parameter", 0, 20);
    runner.close();
    // then
    assertThat(entries).hasSize(20);
}