@Test
public void testPathInfoWithWhitespace() throws Exception {

    HttpServletRequest mockReq = mock(HttpServletRequest.class);
    when(mockReq.getPathInfo()).thenReturn("/http/localhost/10001/jolokia/read/java.lang:type=MemoryManager,name=Metaspace Manager/Name");
    ProxyDetails details = new ProxyDetails(mockReq);
    assertEquals("getFullProxyUrl()", "http://localhost:10001/jolokia/read/java.lang:type=MemoryManager,name=Metaspace%20Manager/Name", details.getFullProxyUrl());
}