### Question:
OvsdbPortUpdateCommand extends AbstractTransactionCommand { @VisibleForTesting void updatePort(final ReadWriteTransaction transaction, final Node node, final InstanceIdentifier<TerminationPoint> tpPath, final Entry<UUID, Port> port, final OvsdbTerminationPointAugmentationBuilder ovsdbTerminationPointBuilder) { updateVlan(port.getValue(), ovsdbTerminationPointBuilder); updateVlanTrunks(port.getValue(), ovsdbTerminationPointBuilder); updateVlanMode(port.getValue(), ovsdbTerminationPointBuilder); updateQos(transaction, node, tpPath, port, ovsdbTerminationPointBuilder); updatePortExternalIds(port.getValue(), ovsdbTerminationPointBuilder); updatePortOtherConfig(port.getValue(), ovsdbTerminationPointBuilder); } OvsdbPortUpdateCommand(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance key,
            TableUpdates updates, DatabaseSchema dbSchema); @Override void execute(ReadWriteTransaction transaction);  }### Answer:
@Test @SuppressWarnings("unchecked") public void testUpdatePort() throws Exception { suppress(method(OvsdbPortUpdateCommand.class, "updateVlan", Port.class, OvsdbTerminationPointAugmentationBuilder.class)); suppress(method(OvsdbPortUpdateCommand.class, "updateVlanTrunks", Port.class, OvsdbTerminationPointAugmentationBuilder.class)); suppress(method(OvsdbPortUpdateCommand.class, "updateVlanMode", Port.class, OvsdbTerminationPointAugmentationBuilder.class)); suppress(method(OvsdbPortUpdateCommand.class, "updatePortExternalIds", Port.class, OvsdbTerminationPointAugmentationBuilder.class)); suppress(method(OvsdbPortUpdateCommand.class, "updatePortOtherConfig", Port.class, OvsdbTerminationPointAugmentationBuilder.class)); suppress(method(OvsdbPortUpdateCommand.class, "updatePortOtherConfig", Port.class, OvsdbTerminationPointAugmentationBuilder.class)); suppress(method(OvsdbPortUpdateCommand.class, "updateQos", ReadWriteTransaction.class, Node.class, InstanceIdentifier.class, Entry.class, OvsdbTerminationPointAugmentationBuilder.class)); Node node = mock(Node.class); Entry<UUID, Port> port = new SimpleEntry<>(mock(UUID.class), mock(Port.class)); OvsdbTerminationPointAugmentationBuilder ovsdbTerminationPointBuilder = mock( OvsdbTerminationPointAugmentationBuilder.class); ReadWriteTransaction transaction = mock(ReadWriteTransaction.class); InstanceIdentifier<TerminationPoint> tpPath = mock(InstanceIdentifier.class); Whitebox.invokeMethod(ovsdbPortUpdateCommand, "updatePort", transaction, node, tpPath, port, ovsdbTerminationPointBuilder); verify(ovsdbPortUpdateCommand).updateVlan(any(Port.class), any(OvsdbTerminationPointAugmentationBuilder.class)); verify(ovsdbPortUpdateCommand).updateVlanTrunks(any(Port.class), any(OvsdbTerminationPointAugmentationBuilder.class)); verify(ovsdbPortUpdateCommand).updateVlanMode(any(Port.class), any(OvsdbTerminationPointAugmentationBuilder.class)); verify(ovsdbPortUpdateCommand).updatePortExternalIds(any(Port.class), any(OvsdbTerminationPointAugmentationBuilder.class)); verify(ovsdbPortUpdateCommand).updatePortOtherConfig(any(Port.class), any(OvsdbTerminationPointAugmentationBuilder.class)); }