@Test
public void shouldUseQueryExecuterToReadInformationFromTheChangelogTable() throws Exception {

    when(expectedResultSet.next()).thenReturn(true, true, true, false);
    when(expectedResultSet.getLong(1)).thenReturn(5L, 9L, 12L);
    final List<Long> numbers = schemaVersionManager.getAppliedChanges();
    assertThat(numbers, hasItems(5L, 9L, 12L));
}