### Question:
OvsdbBridgeUpdateCommand extends AbstractTransactionCommand { private static void setDataPathType(OvsdbBridgeAugmentationBuilder ovsdbBridgeAugmentationBuilder, Bridge bridge) { ovsdbBridgeAugmentationBuilder.setDatapathType( SouthboundMapper.createDatapathType(bridge.getDatapathTypeColumn().getData())); } OvsdbBridgeUpdateCommand(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance key,
            TableUpdates updates, DatabaseSchema dbSchema,
                                    Map<NodeId, Node> updatedBridgeNodes); @Override void execute(ReadWriteTransaction transaction); @Override void onSuccess(); @Override void onFailure(Throwable throwable);  }### Answer:
@SuppressWarnings("unchecked") @Test public void testSetDataPathType() throws Exception { Bridge bridge = mock(Bridge.class); Column<GenericTableSchema, String> column = mock(Column.class); when(bridge.getDatapathTypeColumn()).thenReturn(column); when(column.getData()).thenReturn("system"); PowerMockito.mockStatic(SouthboundMapper.class); when(SouthboundMapper.createDatapathType(anyString())) .thenAnswer((Answer<Class<? extends DatapathTypeBase>>) invocation -> DatapathTypeSystem.class); OvsdbBridgeAugmentationBuilder ovsdbBridgeAugmentationBuilder = mock(OvsdbBridgeAugmentationBuilder.class); when(ovsdbBridgeAugmentationBuilder.setDatapathType(any(Class.class))) .thenReturn(ovsdbBridgeAugmentationBuilder); Whitebox.invokeMethod(ovsdbBridgeUpdateCommand, "setDataPathType", ovsdbBridgeAugmentationBuilder, bridge); verify(bridge).getDatapathTypeColumn(); verify(column).getData(); verify(ovsdbBridgeAugmentationBuilder).setDatapathType(any(Class.class)); }