@Test
public void test_createUpdatedConfigurationItemValues_whenThereAreNoConfigurationItems() throws Exception {

    when(dbConnection.prepareStatement(BareMetalRemovalUpdater.SELECT_CONFIGURATION_ITEMS)).thenReturn(preparedStatement);
    when(preparedStatement.executeQuery()).thenReturn(values);
    when(values.next()).thenReturn(false);
    final List<Map<String, String>> updatedRows = bareMetalRemovalUpdater.createUpdatedConfigurationItemValues(dbConnection);
    assertThat(updatedRows, hasSize(0));
}