Document dom = getAsDOM(requestUrl);
XpathEngine xpath = XMLUnit.newXpathEngine();
// print(dom);
// all the kvp parameters (which should be set as format_options now are correctly parsed)
String result = xpath.evaluate("//kml:NetworkLink/kml:Link/kml:href", dom);
Map<String, Object> kvp = KvpUtils.parseQueryString(result);
List<String> formatOptions = Arrays.asList(((String) kvp.get("format_options")).split(";"));
assertEquals(9, formatOptions.size());
assertTrue(formatOptions.contains("LEGEND:true"));
assertTrue(formatOptions.contains("SUPEROVERLAY:true"));