q.setParameter("bundleId", bundle.getId());
assert q.getResultList().size() == 0;
q = em.createNamedQuery(BundleVersion.QUERY_FIND_VERSION_INFO_BY_BUNDLE_ID);
q.setParameter("bundleId", bundle.getId());
assert q.getResultList().size() == 0;
q = em.createNamedQuery(BundleVersion.UPDATE_VERSION_ORDER_BY_BUNDLE_ID);
q.setParameter("bundleId", bundle.getId());
q.setParameter("versionOrder", 0);
assert q.executeUpdate() == 0 : "should not have updated anything";
BundleVersion bv = new BundleVersion(name, "1.0", bundle, recipe);