SfcProviderAclAPI { public static Acl readAccessList(String aclName, java.lang.Class<? extends AclBase> aclType) { printTraceStart(LOG); Acl acl; InstanceIdentifier<Acl> aclIID; AclKey aclKey = new AclKey(aclName, aclType); aclIID = InstanceIdentifier.builder(AccessLists.class).child(Acl.class, aclKey).build(); acl = SfcDataStoreAPI.readTransactionAPI(aclIID, LogicalDatastoreType.CONFIGURATION); printTraceStop(LOG); return acl; }  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 testReadAccessList() throws Exception { AclBuilder aclBuilder = new AclBuilder(); aclBuilder.setAclName(ACL_NAME) .setKey(new AclKey(ACL_NAME, ACL_TYPE)) .setAccessListEntries(createAccessListEntries()); InstanceIdentifier<Acl> aclIID = InstanceIdentifier.builder(AccessLists.class) .child(Acl.class, new AclKey(ACL_NAME, ACL_TYPE)).build(); boolean transactionSuccessful = SfcDataStoreAPI.writePutTransactionAPI(aclIID, aclBuilder.build(), LogicalDatastoreType.CONFIGURATION); assertTrue("must be true", transactionSuccessful); Acl accessList = SfcProviderAclAPI.readAccessList(ACL_NAME, ACL_TYPE); assertNotNull("Must not be null", accessList); assertNotNull("Must not be null", accessList.getAccessListEntries()); assertNotNull("Must not be null", accessList.getAccessListEntries().getAce()); assertEquals("Must be equal", accessList.getAclName(), ACL_NAME); assertEquals("Must be equal", accessList.getKey().getAclName(), ACL_NAME); assertEquals("Must be equal", accessList.getAccessListEntries().getAce().size(), 4); assertTrue("Must be equal", accessList.getAccessListEntries().getAce().get(0).equals(createAccessListEntries().getAce().get(0))); assertTrue("Must be equal", accessList.getAccessListEntries().getAce().get(1).equals(createAccessListEntries().getAce().get(1))); assertTrue("Must be equal", accessList.getAccessListEntries().getAce().get(2).equals(createAccessListEntries().getAce().get(2))); assertTrue("Must be equal", accessList.getAccessListEntries().getAce().get(3).equals(createAccessListEntries().getAce().get(3))); transactionSuccessful = SfcDataStoreAPI.deleteTransactionAPI(aclIID, LogicalDatastoreType.CONFIGURATION); assertTrue("must be true", transactionSuccessful); }