Version v = vMgr.getBaseVersion(n.getPath());
Query q = qm.createQuery("//element(*, nt:version)[@jcr:uuid = '" +
v.getIdentifier() + "']", Query.XPATH);
NodeIterator nodes = q.execute().getNodes();
assertTrue(nodes.hasNext());
assertTrue(nodes.nextNode() instanceof Version);
RowIterator rows = q.execute().getRows();
assertTrue(rows.hasNext());
assertTrue(rows.nextRow().getNode() instanceof Version);
}