@BeforeClass
 public static void setup() throws Exception {
   IntegrationTestBase.setup();
   accessPolicyInfo =
       service.create(
           AccessPolicy.create(
               testPolicyPrefix + "ForLocatorTest", 5, EnumSet.of(AccessPolicyPermission.WRITE)));
   accessPolicyInfoRead =
       service.create(
           AccessPolicy.create(
               testPolicyPrefix + "ForLocatorTestRead",
               15,
               EnumSet.of(AccessPolicyPermission.READ)));
 }
  @Test
  public void canGetAccessPolicyFromLocator() throws Exception {
    LocatorInfo locator =
        service.create(
            Locator.create(accessPolicyInfo.getId(), assetInfo.getId(), LocatorType.SAS));

    AccessPolicyInfo accessPolicy = service.get(AccessPolicy.get(locator.getAccessPolicyLink()));

    assertEquals(accessPolicyInfo.getId(), accessPolicy.getId());
  }