SfcProviderServiceFunctionGroupAlgAPI { public static ServiceFunctionGroupAlgorithm readServiceFunctionGroupAlg(String serviceFunctionGroupAlgName) { printTraceStart(LOG); ServiceFunctionGroupAlgorithm ret = SfcProviderServiceFunctionGroupAlgAPI.readServiceFunctionGroupAlgorithm(serviceFunctionGroupAlgName); LOG.debug("getRead: {}", ret); printTraceStop(LOG); return ret; }  static ServiceFunctionGroupAlgorithm readServiceFunctionGroupAlg(String serviceFunctionGroupAlgName);  }
@Test public void readServiceFunctionGroupAlgTest(){ ServiceFunctionGroupAlgorithmBuilder serviceFunctionGroupAlgorithmBuilder = new ServiceFunctionGroupAlgorithmBuilder(); serviceFunctionGroupAlgorithmBuilder.setName("SFG1").setKey(new ServiceFunctionGroupAlgorithmKey("SFG1")); ServiceFunctionGroupAlgorithm serviceFunctionGroupAlgorithm = serviceFunctionGroupAlgorithmBuilder.build(); ServiceFunctionGroupAlgorithmKey serviceFunctionGroupAlgorithmKey = new ServiceFunctionGroupAlgorithmKey("SFG1"); InstanceIdentifier<ServiceFunctionGroupAlgorithm> sfgAlgIID = InstanceIdentifier.builder(ServiceFunctionGroupAlgorithms.class).child(ServiceFunctionGroupAlgorithm.class, serviceFunctionGroupAlgorithmKey).build(); SfcDataStoreAPI.writePutTransactionAPI(sfgAlgIID, serviceFunctionGroupAlgorithm, LogicalDatastoreType.CONFIGURATION); assertNotNull(SfcProviderServiceFunctionGroupAlgAPI.readServiceFunctionGroupAlg("SFG1")); ServiceFunctionGroupAlgorithm sfga = SfcDataStoreAPI.readTransactionAPI(sfgAlgIID, LogicalDatastoreType.CONFIGURATION); assertEquals(serviceFunctionGroupAlgorithm, sfga); }