@Test
public void test_updateConfigurationItems_whenThereIsOneUpdate() throws Exception {

    when(dbConnection.prepareStatement(BareMetalRemovalUpdater.UPDATE_CONFIGURATION_ITEM)).thenReturn(preparedStatement);
    final List<Map<String, String>> updatedRows = new ArrayList<>();
    final HashMap<String, String> updatedRow = new HashMap<>();
    updatedRow.put(BareMetalRemovalUpdater.VALUE, "hypervisor_a");
    updatedRow.put(BareMetalRemovalUpdater.CATEGORY, "someCategory");
    updatedRow.put(BareMetalRemovalUpdater.INSTANCE, "someInstance");
    updatedRow.put(BareMetalRemovalUpdater.COMPONENT, "someComponent");
    updatedRow.put(BareMetalRemovalUpdater.NAME, "someName");
    updatedRows.add(updatedRow);
    bareMetalRemovalUpdater.updateConfigurationItems(dbConnection, updatedRows);
    verify(preparedStatement, times(5)).setString(anyInt(), anyString());
    verify(preparedStatement, times(1)).executeUpdate();
}