q = em.createNamedQuery(BundleVersionRepo.QUERY_FIND_BY_BUNDLE_VERSION_ID_NO_FETCH);
q.setParameter("id", bundleVersion.getId());
List<BundleVersionRepo> resultList = q.getResultList();
assert resultList.size() == 2;
BundleVersionRepoPK pk1 = new BundleVersionRepoPK(bundleVersion, repo1);
BundleVersionRepoPK pk2 = new BundleVersionRepoPK(bundleVersion, repo2);
if (resultList.get(0).getBundleVersionRepoPK().getRepo().equals(repo1)) {
assert bvr1.equals(resultList.get(0));
assert bvr2.equals(resultList.get(1));
assert pk1.equals(resultList.get(0).getBundleVersionRepoPK());
assert pk2.equals(resultList.get(1).getBundleVersionRepoPK());
} else {
assert bvr1.equals(resultList.get(1));
assert bvr2.equals(resultList.get(0));
assert pk1.equals(resultList.get(1).getBundleVersionRepoPK());
assert pk2.equals(resultList.get(0).getBundleVersionRepoPK());
}
} catch (Throwable t) {
t.printStackTrace();
throw t;
} finally {