public void testMultipleResultsNested() throws Exception
{
JXPathExtractor extractor = createObject(JXPathExtractor.class);
extractor.setExpression("/root/node[*]/*/text()");
extractor.setSingleResult(false);
final Object objResult = extractor.transform(TEST_XML_MULTI_NESTED_RESULTS);
assertNotNull(objResult);
List results = (List)objResult;
assertEquals("Wrong number of results returned.", 4, results.size());
assertEquals("Wrong value returned.", "val1", results.get(0));
assertEquals("Wrong value returned.", "val2", results.get(1));