SfcProviderScheduleTypeAPI { public static boolean putServiceFunctionScheduleType(ServiceFunctionSchedulerType serviceFunctionSchedulerType) { boolean ret; printTraceStart(LOG); InstanceIdentifier<ServiceFunctionSchedulerType> sfstEntryIID = InstanceIdentifier.builder(ServiceFunctionSchedulerTypes.class) .child(ServiceFunctionSchedulerType.class, serviceFunctionSchedulerType.getKey()) .build(); ret = SfcDataStoreAPI.writePutTransactionAPI(sfstEntryIID, serviceFunctionSchedulerType, LogicalDatastoreType.CONFIGURATION); printTraceStop(LOG); return ret; }  static ServiceFunctionSchedulerType readEnabledServiceFunctionScheduleTypeEntry(); static boolean putServiceFunctionScheduleType(ServiceFunctionSchedulerType serviceFunctionSchedulerType); static boolean deleteServiceFunctionScheduleType(
            Class<? extends ServiceFunctionSchedulerTypeIdentity> serviceFunctionSchedulerType); static ServiceFunctionSchedulerType readServiceFunctionScheduleType(
            Class<? extends ServiceFunctionSchedulerTypeIdentity> serviceFunctionSchedulerTypeIdentity); static ServiceFunctionSchedulerTypes readAllServiceFunctionScheduleTypes();  }
@Test public void testPutServiceFunctionScheduleType() { ServiceFunctionSchedulerTypeBuilder serviceFunctionSchedulerTypeBuilder = new ServiceFunctionSchedulerTypeBuilder(); serviceFunctionSchedulerTypeBuilder.setName("SFST") .setKey(new ServiceFunctionSchedulerTypeKey(RoundRobin.class)) .setEnabled(true) .setType(RoundRobin.class); boolean transactionSuccessful = SfcProviderScheduleTypeAPI.putServiceFunctionScheduleType(serviceFunctionSchedulerTypeBuilder.build()); assertTrue("Must be true", transactionSuccessful); ServiceFunctionSchedulerType serviceFunctionSchedulerType = SfcProviderScheduleTypeAPI.readServiceFunctionScheduleType(RoundRobin.class); assertNotNull("Must not be null", serviceFunctionSchedulerType); assertEquals("Must be equal", serviceFunctionSchedulerType.getName(), "SFST"); assertEquals("Must be equal", serviceFunctionSchedulerType.getType(), RoundRobin.class); assertTrue("Must be equal", serviceFunctionSchedulerType.isEnabled()); transactionSuccessful = SfcProviderScheduleTypeAPI.deleteServiceFunctionScheduleType(RoundRobin.class); assertTrue("Must be true", transactionSuccessful); }