@Test
public void test_updateConfigurationItems_whenThereAreTwoUpdates() throws Exception {

    when(dbConnection.prepareStatement(BareMetalRemovalUpdater.UPDATE_CONFIGURATION_ITEM)).thenReturn(preparedStatement);
    final List<Map<String, String>> updatedRows = new ArrayList<>();
    final HashMap<String, String> updatedRow1 = new HashMap<>();
    updatedRow1.put(BareMetalRemovalUpdater.VALUE, "hypervisor_a");
    updatedRow1.put(BareMetalRemovalUpdater.CATEGORY, "someCategory");
    updatedRow1.put(BareMetalRemovalUpdater.INSTANCE, "someInstance");
    updatedRow1.put(BareMetalRemovalUpdater.COMPONENT, "someComponent");
    updatedRow1.put(BareMetalRemovalUpdater.NAME, "someName");
    final HashMap<String, String> updatedRow2 = new HashMap<>();
    updatedRow1.put(BareMetalRemovalUpdater.VALUE, "hypervisor_b");
    updatedRow1.put(BareMetalRemovalUpdater.CATEGORY, "anotherCategory");
    updatedRow1.put(BareMetalRemovalUpdater.INSTANCE, "anotherInstance");
    updatedRow1.put(BareMetalRemovalUpdater.COMPONENT, "anotherCmponent");
    updatedRow1.put(BareMetalRemovalUpdater.NAME, "anotherName");
    updatedRows.add(updatedRow1);
    updatedRows.add(updatedRow2);
    bareMetalRemovalUpdater.updateConfigurationItems(dbConnection, updatedRows);
    verify(preparedStatement, times(10)).setString(anyInt(), anyString());
    verify(preparedStatement, times(2)).executeUpdate();
}