### Question:
OvsdbManagersRemovedCommand extends AbstractTransactionCommand { @VisibleForTesting void deleteManagers(ReadWriteTransaction transaction, List<InstanceIdentifier<ManagerEntry>> managerEntryIids) { for (InstanceIdentifier<ManagerEntry> managerEntryIid: managerEntryIids) { transaction.delete(LogicalDatastoreType.OPERATIONAL, managerEntryIid); } } OvsdbManagersRemovedCommand(OvsdbConnectionInstance key,
            TableUpdates updates, DatabaseSchema dbSchema); @Override void execute(ReadWriteTransaction transaction);  }### Answer:
@SuppressWarnings("unchecked") @Test public void testDeleteManagers() throws Exception { ReadWriteTransaction transaction = mock(ReadWriteTransaction.class); List<InstanceIdentifier<ManagerEntry>> managerEntryIids = new ArrayList<>(); managerEntryIids.add(mock(InstanceIdentifier.class)); doNothing().when(transaction).delete(any(LogicalDatastoreType.class), any(InstanceIdentifier.class)); Whitebox.invokeMethod(ovsdbManagersRemovedCommand, "deleteManagers", transaction, managerEntryIids); verify(transaction).delete(any(LogicalDatastoreType.class), any(InstanceIdentifier.class)); }