SfcOvsDataStoreAPI implements Callable { private boolean deleteOvsdbNode(InstanceIdentifier<Node> ovsdbNodeIID) { Preconditions.checkNotNull(ovsdbNodeIID, "Cannot DELETE OVS Node from OVS configuration store, InstanceIdentifier<Node> is null."); return SfcDataStoreAPI.deleteTransactionAPI(ovsdbNodeIID, LogicalDatastoreType.CONFIGURATION); } SfcOvsDataStoreAPI(Method methodToCall, Object[] newMethodParameters); @Override Object call();  }
@Test public void testDeleteOvsdbNode() throws Exception { methodToCall = SfcOvsDataStoreAPI.Method.DELETE_OVSDB_NODE; methodParams[0] = nodeIID; sfcOvsDataStoreAPIObject = new SfcOvsDataStoreAPI(methodToCall, methodParams); testResult = sfcOvsDataStoreAPIObject.call(); assertNotNull("Must not be null", testResult); }