### Question:
DisectHandle { public static String disectHandle(String requestURL) { try { StringBuffer buffer = new StringBuffer(); URL url = new URL(requestURL); String path = url.getPath(); String application = path; StringTokenizer tokenizer = new StringTokenizer(path, "/"); if (tokenizer.hasMoreTokens()) { application = tokenizer.nextToken(); } String handleServlet = path; if (tokenizer.hasMoreTokens()) { handleServlet = tokenizer.nextToken(); } while (tokenizer.hasMoreTokens()) { buffer.append(tokenizer.nextElement()); if (tokenizer.hasMoreTokens()) { buffer.append("/"); } } return buffer.toString(); } catch (MalformedURLException e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); return "<no handle>"; } }  static String disectHandle(String requestURL); static Logger LOGGER; }### Answer:
@Test public void testDisectHandle() { String url="http: String handle = DisectHandle.disectHandle(url); Assert.assertEquals("uuid:045b1250-7e47-11e0-add1-000d606f5dc6",handle); }
@Test public void testDisectHandleWithPage() { String url="http: String handle = DisectHandle.disectHandle(url); Assert.assertEquals("uuid:045b1250-7e47-11e0-add1-000d606f5dc6/@2",handle); }
@Test public void testDisectHandleClient() { String url="http: String handle = DisectHandle.disectHandle(url); Assert.assertEquals("uuid:045b1250-7e47-11e0-add1-000d606f5dc6",handle); }