assertEquals("Locators", creator.getUri());
}
@Test
public void createLocatorHasCorrectPayload() throws Exception {
LocatorRestType locatorType = (LocatorRestType) Locator.create(
exampleAccessPolicyId, exampleAssetId, LocatorType.SAS)
.getRequestContents();
assertEquals(exampleAssetId, locatorType.getAssetId());
assertEquals(exampleAccessPolicyId, locatorType.getAccessPolicyId());
assertEquals(LocatorType.SAS.getCode(), locatorType.getType()
.intValue());
assertNull(locatorType.getStartTime());
assertNull(locatorType.getExpirationDateTime());
}