", was " + retSeq.getLength(),
retSeq.getLength() == strings.length);
for (int i = 1; i <= strings.length; i++) {
Item item = retSeq.getItem(i);
assertTrue("Item " + i + " should be same string",
strings[i - 1].equals(item.stringValue().asJavaString()));
}
}
/**
* Helper method which creates a sequence of strings.