public void testUri_Query_Headers() {
Map<String, String> headersMap = new HashMap<String, String>();
headersMap.put("Authentication", "Basic 4711");
headersMap.put("Accept", "application/json");
Resource r1 = new Resource(BU, "x=y", headersMap);
assertEquals(BU, r1.getPath());
assertEquals("x=y", r1.getQuery());
assertEquals(BU + "?" + "x=y", r1.getUri());
Resource r2 = r1.addQueryParam("a", "1").addQueryParam("b", "2");
assertEquals(BU, r2.getPath());
assertEquals("x=y" + "&" + EQ, r2.getQuery());
assertEquals(BU + "?" + "x=y" + "&" + EQ, r2.getUri());
assertEquals(2, r2.getHeaders().size());
}