RestUri { public String getId() { if(!matcher.matches()) { return null; } return matcher.group(5); } RestUri(String uri); String getId();  }
@Test public void testNormalUri() { RestUri uri = new RestUri("http: assertEquals("id", "1", uri.getId()); }