SfcServiceFunctionSchedulerAPI { abstract public List<SfName> scheduleServiceFunctions(ServiceFunctionChain chain, int serviceIndex, ServiceFunctionPath sfp);  java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.intel.params.xml.ns.yang.sfc.sfst.rev150312.ServiceFunctionSchedulerTypeIdentity> getSfcServiceFunctionSchedulerType(); void setSfcServiceFunctionSchedulerType(
            java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.intel.params.xml.ns.yang.sfc.sfst.rev150312.ServiceFunctionSchedulerTypeIdentity> schedulerType); abstract List<SfName> scheduleServiceFunctions(ServiceFunctionChain chain, int serviceIndex,
            ServiceFunctionPath sfp);  }
@Test public void testServiceFunctionRandomScheduler() { int serviceIndex = 255; SfcServiceFunctionSchedulerAPI scheduler = new SfcServiceFunctionRandomSchedulerAPI(); List<SfName> serviceFunctionNameArrayList = scheduler.scheduleServiceFunctions(sfChain, serviceIndex, sfPath); assertNotNull("Must be not null", serviceFunctionNameArrayList); ServiceFunction serviceFunction = SfcProviderServiceFunctionAPI.readServiceFunction(serviceFunctionNameArrayList.get(0)); assertNotNull("Must be not null", serviceFunction); assertEquals("Must be equal", serviceFunction.getType(), new SftTypeName("firewall")); assertNotEquals("Must be not equal", serviceFunction.getType(), new SftTypeName("dpi")); serviceFunction = SfcProviderServiceFunctionAPI.readServiceFunction(serviceFunctionNameArrayList.get(1)); assertEquals("Must be equal", serviceFunction.getType(), new SftTypeName("dpi")); assertNotEquals("Must be not equal", serviceFunction.getType(), new SftTypeName("napt44")); serviceFunction = SfcProviderServiceFunctionAPI.readServiceFunction(serviceFunctionNameArrayList.get(2)); assertEquals("Must be equal", serviceFunction.getType(), new SftTypeName("napt44")); assertNotEquals("Must be not equal", serviceFunction.getType(), new SftTypeName("firewall")); }