   @Test
   public void testGetPath()
   {

      assertNull(Utils.getPathOnly(null));
      assertTrue(Utils.getPathOnly("").isEmpty());
      String path = "/path";
      assertEquals(path, Utils.getPathOnly("/path?query#fragment"));
      assertEquals(path, Utils.getPathOnly("/path?query"));
      assertEquals(path, Utils.getPathOnly("/path"));
      assertEquals(path, Utils.getPathOnly("/path#fragment"));
   }