// AuthorityID
assertEquals(
"urn:uuid:D5CFA9CB-F43B-228C-3CEE-C5E9F2D3CB15",
oDesc.getProviderID().trim());
Service authService = oDesc.getServiceAt(0);
// Authority
assertNotNull(authService);
// Authority/AuthorityID
assertEquals(
"urn:uuid:C5C9EECF-A3BC-4883-8852-8EECB54CE1D5",
authService.getProviderId().trim());
// Authority/URI(s)
assertEquals(3, authService.getNumURIs());
assertEquals(
"http://test.epok.net/foo/bar",
authService.getURIForScheme("http").getURI().toString());
assertEquals(
"https://test.epok.net/foo/bar",
authService.getURIForScheme("https").getURI().toString());
// Authority/URI(s)
/*
assertEquals(3, oDesc.getServiceForType(Tags.SERVICE_AUTH_TRUSTED).getNumURIs());
assertEquals(
"http://test.epok.net/foo/bar",
oDesc.getXRIAuthority().getTrustedURIForScheme("http") + "");
*/
// Authority/KeyInfo
assertNotNull(authService.getKeyInfo());
// Services
Service oLA = oDesc.getServiceAt(1);
assertTrue("Incorrect type", oLA.getTypeAt(0).getType().equals("xri:@epok/foo"));
assertTrue("Incorrect URI for Local Access", oLA.getNumURIs() == 0);
oLA = oDesc.getServiceAt(2);
assertTrue("Incorrect type", oLA.getTypeAt(0).getType().equals("xri:@epok/foo2"));
assertTrue(
"Incorrect URI for Local Access2", oLA.getNumURIs() == 1);
assertTrue(
"Incorrect Value for Custom Data",
oLA.getOtherTagValues("Custom") != null);
assertTrue(
"Incorrect Value for Custom Data2",
oLA.getOtherTagValues("Custom2") != null);
// Synonyms
assertTrue(
"Incorrect # for Internal", oDesc.getNumLocalIDs() == 1);
assertTrue(