assert q.getResultList().size() == 1;
assert ((BundleVersionRepo) q.getSingleResult()).getBundleVersionRepoPK().getBundleVersion()
.equals(bundleVersion);
assert ((BundleVersionRepo) q.getSingleResult()).getBundleVersionRepoPK().getRepo().equals(repo2);
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);