MultiItemConfiguredXpathQuery extends ConfiguredXpathQueryImpl implements XpathQuery { public void setSeparator(String s) { separator = Args.notNull(s, "separator"); } MultiItemConfiguredXpathQuery();  MultiItemConfiguredXpathQuery(String metadataKey, String xpath);  MultiItemConfiguredXpathQuery(String metadataKey, String xpath, String separator); @Override MetadataElement resolveXpath(Document doc, XPath xpath, String expr); String getSeparator(); void setSeparator(String s);  }
@Test public void testSetSeparator() { MultiItemConfiguredXpathQuery query = create(); assertEquals("|", query.getSeparator()); query.setSeparator(","); assertEquals(",", query.getSeparator()); query.setSeparator(""); assertEquals("", query.getSeparator()); try { query.setSeparator(null); fail(); } catch (IllegalArgumentException e) { } assertEquals("", query.getSeparator()); }