ApplicationOrMetaRouter implements ApplicationRouter<E> { @VisibleForTesting static boolean isMeta(final String uriString) { final URI uri; try { uri = new URI(uriString); } catch (URISyntaxException e) { return false; } return uri.getPath().startsWith(META); } ApplicationOrMetaRouter(final ApplicationRouter<E> applicationRouter,
                                 final ApplicationRouter<E> metaRouter); @Override Optional<RuleMatch<E>> match(Request message); @Override Collection<String> getMethodsForValidRules(Request message); @Override List<E> getRuleTargets();  }
@Test public void shouldMatchMeta() { String uri = "gopher: assertThat(ApplicationOrMetaRouter.isMeta(uri), is(true)); }