### Question:
OvsdbBridgeUpdateCommand extends AbstractTransactionCommand { private static void setOtherConfig(OvsdbBridgeAugmentationBuilder ovsdbBridgeAugmentationBuilder, Bridge bridge) { Map<String, String> otherConfigs = bridge .getOtherConfigColumn().getData(); if (otherConfigs != null && !otherConfigs.isEmpty()) { List<BridgeOtherConfigs> otherConfigList = new ArrayList<>(); for (Entry<String, String> entry : otherConfigs.entrySet()) { String otherConfigKey = entry.getKey(); String otherConfigValue = entry.getValue(); if (otherConfigKey != null && otherConfigValue != null) { otherConfigList.add(new BridgeOtherConfigsBuilder() .setBridgeOtherConfigKey(otherConfigKey) .setBridgeOtherConfigValue(otherConfigValue) .build()); } } ovsdbBridgeAugmentationBuilder.setBridgeOtherConfigs(otherConfigList); } } 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 testSetOtherConfig() throws Exception { Bridge bridge = mock(Bridge.class); Column<GenericTableSchema, Map<String, String>> column = mock(Column.class); when(bridge.getOtherConfigColumn()).thenReturn(column); Map<String, String> map = new HashMap<>(); map.put("key", "value"); when(column.getData()).thenReturn(map); BridgeOtherConfigsBuilder bridgeOtherConfigsBuilder = mock(BridgeOtherConfigsBuilder.class); PowerMockito.whenNew(BridgeOtherConfigsBuilder.class).withNoArguments().thenReturn(bridgeOtherConfigsBuilder); when(bridgeOtherConfigsBuilder.setBridgeOtherConfigKey(anyString())).thenReturn(bridgeOtherConfigsBuilder); when(bridgeOtherConfigsBuilder.setBridgeOtherConfigValue(anyString())).thenReturn(bridgeOtherConfigsBuilder); when(bridgeOtherConfigsBuilder.build()).thenReturn(mock(BridgeOtherConfigs.class)); OvsdbBridgeAugmentationBuilder ovsdbBridgeAugmentationBuilder = mock(OvsdbBridgeAugmentationBuilder.class); when(ovsdbBridgeAugmentationBuilder.setBridgeOtherConfigs(any(List.class))) .thenReturn(ovsdbBridgeAugmentationBuilder); Whitebox.invokeMethod(ovsdbBridgeUpdateCommand, "setOtherConfig", ovsdbBridgeAugmentationBuilder, bridge); verify(bridge).getOtherConfigColumn(); verify(bridgeOtherConfigsBuilder).setBridgeOtherConfigKey(anyString()); verify(bridgeOtherConfigsBuilder).setBridgeOtherConfigValue(anyString()); }