### Question:
OpenVSwitchUpdateCommand extends AbstractTransactionCommand { @VisibleForTesting void setNewOtherConfigs(OvsdbNodeAugmentationBuilder ovsdbNodeBuilder, Map<String, String> otherConfigs) { List<OpenvswitchOtherConfigs> otherConfigsList = new ArrayList<>(); for (Entry<String, String> entry : otherConfigs.entrySet()) { String otherConfigKey = entry.getKey(); String otherConfigValue = entry.getValue(); if (otherConfigKey != null && otherConfigValue != null) { otherConfigsList.add(new OpenvswitchOtherConfigsBuilder().setOtherConfigKey(otherConfigKey) .setOtherConfigValue(otherConfigValue).build()); } } ovsdbNodeBuilder.setOpenvswitchOtherConfigs(otherConfigsList); } OpenVSwitchUpdateCommand(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance key,
            TableUpdates updates, DatabaseSchema dbSchema); @Override void execute(ReadWriteTransaction transaction);  }### Answer:
@Test public void testSetNewOtherConfigs() throws Exception { OvsdbNodeAugmentationBuilder ovsdbNodeBuilder = new OvsdbNodeAugmentationBuilder(); Whitebox.invokeMethod(openVSwitchUpdateCommand, "setNewOtherConfigs", ovsdbNodeBuilder, ImmutableMap.of("otherConfigKey", "otherConfigValue")); final Map<OpenvswitchOtherConfigsKey, OpenvswitchOtherConfigs> otherConfigsList = ovsdbNodeBuilder.getOpenvswitchOtherConfigs(); assertEquals(1, otherConfigsList.size()); final OpenvswitchOtherConfigs otherConfig = otherConfigsList.values().iterator().next(); assertEquals("otherConfigKey", otherConfig.getOtherConfigKey()); assertEquals("otherConfigValue", otherConfig.getOtherConfigValue()); }