StaticLocator extends AbstractLocator { @Override public URI lookup(ParticipantIdentifier participantIdentifier) throws LookupException { return defaultUri; } StaticLocator(Mode mode);  StaticLocator(String defaultUri); @Override URI lookup(ParticipantIdentifier participantIdentifier);  }
@Test public void simple() throws Exception { String uri = "http: MetadataLocator locator = new StaticLocator(uri); Assert.assertEquals(locator.lookup(ParticipantIdentifier.of("9908:991825827")).toString(), uri); }