    @Test
    public void testExpandWithFixedQuery() throws Exception {

        final PartialUriTemplate template =
                new PartialUriTemplate("http://example" +
                        ".com/events{/city}?eventName=Revo+Tour&location=Schlachthof{#section}");
        Map<String, Object> val = new HashMap<String, Object>();
        val.put("city", "Wiesbaden");
        val.put("eventName", "Revo Tour");
        val.put("location", "Schlachthof");
        val.put("section", "description");
        final PartialUriTemplateComponents expanded = template.expand(val);
        Assert.assertEquals("http://example.com/events/Wiesbaden?eventName=Revo+Tour&location=Schlachthof#description",
                expanded.toString());
    }