EndpointUtil { public static String decodeClientURI(String clientUri) { return clientUri.startsWith(Constants.URI_CLIENT_PREFIX) ? clientUri.substring(Constants.URI_CLIENT_PREFIX.length()): clientUri; }  static String encodeEndpoint(String uri, String operation); static String decodeEndpointURI(String endpoint); static String decodeEndpointOperation(String endpoint, boolean stripped); static String encodeClientURI(String uri); static String decodeClientURI(String clientUri); static EndpointRef getSourceEndpoint(Trace fragment);  }
@Test public void testDecodeClientURI() { assertEquals(URI, EndpointUtil.decodeClientURI(Constants.URI_CLIENT_PREFIX + URI)); }
@Test public void testDecodeNonClientURI() { assertEquals(URI, EndpointUtil.decodeClientURI(URI)); }