SfcProviderAclAPI { public static AccessListState readAccessListState(String aclName, java.lang.Class<? extends AclBase> aclType) { printTraceStart(LOG); AccessListState aclState; InstanceIdentifier<AccessListState> aclStateIID; AccessListStateKey accessListStateKey = new AccessListStateKey(aclName, aclType); aclStateIID = InstanceIdentifier.builder(AccessListsState.class) .child(AccessListState.class, accessListStateKey).build(); aclState = SfcDataStoreAPI.readTransactionAPI(aclStateIID, LogicalDatastoreType.OPERATIONAL); printTraceStop(LOG); return aclState; }  static Acl readAccessList(String aclName, java.lang.Class<? extends AclBase> aclType); static AccessListState readAccessListState(String aclName, java.lang.Class<? extends AclBase> aclType); static boolean addClassifierToAccessListState(String aclName, java.lang.Class<? extends AclBase> aclType,
            String serviceClassifierName); static boolean deleteClassifierFromAccessListState(String aclName,
            java.lang.Class<? extends AclBase> aclType, String serviceClassifierName);  }
@Test public void testReadAccessListState() throws Exception { String ACL_STATE_NAME = "aclStateName"; AccessListStateBuilder accessListStateBuilder = new AccessListStateBuilder(); accessListStateBuilder.setAclName(ACL_STATE_NAME) .setKey(new AccessListStateKey(ACL_STATE_NAME, ACL_TYPE)) .setAclServiceFunctionClassifier(createAclServiceFunctionClassifier()); InstanceIdentifier<AccessListState> aclStateIID = InstanceIdentifier.builder(AccessListsState.class) .child(AccessListState.class, new AccessListStateKey(ACL_STATE_NAME, ACL_TYPE)).build(); boolean transactionSuccessful = SfcDataStoreAPI.writePutTransactionAPI(aclStateIID, accessListStateBuilder.build(), LogicalDatastoreType.OPERATIONAL); assertTrue("must be true", transactionSuccessful); AccessListState accessListState = SfcProviderAclAPI.readAccessListState(ACL_STATE_NAME, ACL_TYPE); assertNotNull("Must not be null", accessListState); assertEquals("Must be equal", accessListState.getAclName(), ACL_STATE_NAME); assertEquals("Must be equal", accessListState.getKey().getAclName(), ACL_STATE_NAME); assertEquals("Must be equal", accessListState.getAclServiceFunctionClassifier().get(0).getName(), CLASSIFIER_NAME); transactionSuccessful = SfcDataStoreAPI.deleteTransactionAPI(aclStateIID, LogicalDatastoreType.OPERATIONAL); assertTrue("must be true", transactionSuccessful); }