### Question:
OvsdbBridgeRemovedCommand extends AbstractTransactionCommand { @Override public void execute(ReadWriteTransaction transaction) { Collection<Bridge> removedRows = TyperUtils.extractRowsRemoved(Bridge.class, getUpdates(), getDbSchema()).values(); for (Bridge bridge : removedRows) { InstanceIdentifier<Node> bridgeIid = SouthboundMapper.createInstanceIdentifier(instanceIdentifierCodec, getOvsdbConnectionInstance(), bridge); InstanceIdentifier<ManagedNodeEntry> mnIid = getOvsdbConnectionInstance().getInstanceIdentifier() .augmentation(OvsdbNodeAugmentation.class) .child(ManagedNodeEntry.class, new ManagedNodeEntryKey(new OvsdbBridgeRef(bridgeIid))); transaction.delete(LogicalDatastoreType.OPERATIONAL, bridgeIid); transaction.delete(LogicalDatastoreType.OPERATIONAL, mnIid); } } OvsdbBridgeRemovedCommand(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance key,
            TableUpdates updates, DatabaseSchema dbSchema); @Override void execute(ReadWriteTransaction transaction);  }### Answer:
@Test public void testExecute() throws Exception { MemberModifier.suppress(MemberMatcher.method(OvsdbBridgeRemovedCommand.class, "getUpdates")); when(ovsdbBridgeRemovedCommand.getUpdates()).thenReturn(mock(TableUpdates.class)); MemberModifier.suppress(MemberMatcher.method(OvsdbBridgeRemovedCommand.class, "getDbSchema")); when(ovsdbBridgeRemovedCommand.getDbSchema()).thenReturn(mock(DatabaseSchema.class)); PowerMockito.mockStatic(TyperUtils.class); Map<UUID, Bridge> map = new HashMap<>(); when(TyperUtils.extractRowsRemoved(eq(Bridge.class), any(TableUpdates.class), any(DatabaseSchema.class))) .thenReturn(map); ReadWriteTransaction transaction = mock(ReadWriteTransaction.class); ovsdbBridgeRemovedCommand.execute(transaction); verify(ovsdbBridgeRemovedCommand).getUpdates(); verify(ovsdbBridgeRemovedCommand).getDbSchema(); }