public void decode2A()
{
Url url = Url.parse("wicket/resource/" + CLASS_NAME + "/reference1?-style&p1=v1&p2=v2");
IRequestHandler handler = encoder.mapRequest(getRequest(url));
assertTrue(handler instanceof ResourceReferenceRequestHandler);
ResourceReferenceRequestHandler h = (ResourceReferenceRequestHandler)handler;
assertEquals(resource1, h.getResource());
assertEquals(null, h.getLocale());
assertEquals("style", h.getStyle());
assertEquals(null, h.getVariation());
assertEquals(0, h.getPageParameters().getIndexedCount());
assertEquals("v1", h.getPageParameters().get("p1").toString());
assertEquals("v2", h.getPageParameters().get("p2").toString());
}