* Relative ResourceReferences, WICKET-3514
*/
@Test
public void resourceReferenceWithLessSegments()
{
PackageResourceReference resource = new PackageResourceReference(getClass(),
"crypt/crypt.txt");
Url url = mapper.mapHandler(new ResourceReferenceRequestHandler(resource));
url.getSegments().remove(url.getSegments().size() - 1);
url.getSegments().remove(url.getSegments().size() - 1);
url.getSegments().add("less-crypt.txt");