SfcOvsDataStoreAPI implements Callable { private boolean putOvsdbBridge(OvsdbBridgeAugmentation ovsdbBridge) { Preconditions.checkNotNull(ovsdbBridge, "Cannot PUT new OVS Bridge into OVS configuration store, OvsdbBridgeAugmentation is null."); return SfcDataStoreAPI.writeMergeTransactionAPI(SfcOvsUtil.buildOvsdbBridgeIID(ovsdbBridge), ovsdbBridge, LogicalDatastoreType.CONFIGURATION); } SfcOvsDataStoreAPI(Method methodToCall, Object[] newMethodParameters); @Override Object call();  }
@Test public void testPutOvsdbBridge() throws Exception { methodToCall = SfcOvsDataStoreAPI.Method.PUT_OVSDB_BRIDGE; methodParams[0] = createOvsdbBridgeAugmentation(); sfcOvsDataStoreAPIObject = new SfcOvsDataStoreAPI(methodToCall, methodParams); testResult = sfcOvsDataStoreAPIObject.call(); assertNotNull("Must not be null", testResult); }