}
public void testDomainTranslationSelectSet() {
XMLQuery query = XMLQueryHelper
.getDefaultQueryFromQueryString(queryStr);
assertNotNull(query);
assertNotNull(query.getSelectElementSet());
assertEquals(1, query.getSelectElementSet().size());
try {
handler.translateToDomain(query.getSelectElementSet(), true);
} catch (Exception e) {
fail(e.getMessage());
}
assertNotNull(query.getSelectElementSet());
assertEquals(1, query.getSelectElementSet().size());
assertNotNull(query.getSelectElementSet().get(0));
QueryElement elem = (QueryElement) query.getSelectElementSet().get(0);
assertNotNull(elem.getValue());
assertEquals("Expected: [" + expectedSpecimenFldName + "]: got: ["
+ elem.getValue() + "]", elem.getValue(),
expectedSpecimenFldName);