* but adds it back in is okay.
*
* @throws Exception
*/
public void testRemoveResourcePathThenAddItBack() throws Exception {
ClientResponse response =
client.resource(getBaseURI() + "/uriinfo/../uriinfo" + "?info=path").get();
assertEquals(200, response.getStatusCode());
assertEquals("uriinfo", response.getEntity(String.class));
response = client.resource(getBaseURI() + "/uriinfo/." + "?info=path").get();
assertEquals(200, response.getStatusCode());
assertEquals("uriinfo/", response.getEntity(String.class));
response = client.resource(getBaseURI() + "/uriinfo/./" + "?info=path").get();
assertEquals(200, response.getStatusCode());
assertEquals("uriinfo/", response.getEntity(String.class));
response =
client.resource(getBaseURI() + "/uriinfo/./.././uriinfo/./" + "?info=path").get();
assertEquals(200, response.getStatusCode());
assertEquals("uriinfo/", response.getEntity(String.class));
response = client.resource(getBaseURI() + "/uriinfo/../uriinfo/" + "?info=path").get();
assertEquals(200, response.getStatusCode());
assertEquals("uriinfo/", response.getEntity(String.class));
response =
client.resource(getBaseURI() + "/uriinfo/sub/../uriinfo/../sub" + "?info=path").get();
assertEquals(200, response.getStatusCode());
assertEquals("uriinfo/sub", response.getEntity(String.class));
response =
client.resource(getBaseURI() + "/uriinfo/sub/../uriinfo/../sub/" + "?info=path").get();
assertEquals(200, response.getStatusCode());
assertEquals("uriinfo/sub/", response.getEntity(String.class));
}