### Question:
VirtualImageConversionDAO extends DefaultDAOBase<Integer, VirtualImageConversion> { @Deprecated @SuppressWarnings("unchecked") public VirtualImageConversion getUnbundledConversion(final VirtualMachineTemplate image, final DiskFormatType format) { List<VirtualImageConversion> conversions = createCriteria(sameImage(image)).add(targetFormatIn(format)).add(sourceFormatNull()) .list(); if (conversions != null && !conversions.isEmpty()) { if (conversions.size() > 1) { throw new NonUniqueObjectException("There is more than one conversion!", image.getId(), VirtualImageConversion.class.getSimpleName()); } return conversions.get(0); } return null; } VirtualImageConversionDAO();  VirtualImageConversionDAO(final EntityManager entityManager); @SuppressWarnings("unchecked") List<VirtualImageConversion> compatilbeConversions(
        final VirtualMachineTemplate virtualImage, final HypervisorType hypervisorType); boolean isVirtualImageConverted(final Integer vImageId, final DiskFormatType format); @Deprecated // use selectConversion TODO delthis @SuppressWarnings("unchecked") VirtualImageConversion getUnbundledConversion(final VirtualMachineTemplate image,
        final DiskFormatType format); boolean isConverted(final VirtualMachineTemplate image, final DiskFormatType targetType); Collection<VirtualImageConversion> findByVirtualImage(
        final VirtualMachineTemplate virtualImage); Collection<VirtualImageConversion> findByVirtualImageConversionByNodeVirtualImage(
        final NodeVirtualImage nodeVirtualImage); String getDatacenterUUIDByVirtualImageConversionID(final Integer idVirtualImageConversion); boolean existDuplicatedConversion(final VirtualImageConversion conversion);  }### Answer:
@Test(enabled = false) public void getUnbundledConversionTest() { Datacenter datacenter = datacenterGenerator.createUniqueInstance(); Machine machine = machineGenerator.createMachine(datacenter); Enterprise enterprise = enterpriseGenerator.createUniqueInstance(); Role role = roleGenerator.createInstanceSysAdmin(); User user = userGenerator.createInstance(enterprise, role); VirtualMachineTemplate image = virtualImageGenerator.createVirtualMachineTemplateWithConversions(enterprise); Hypervisor hypervisor = hypervisorGenerator.createInstance(machine); VirtualMachine virtualMachine = virtualMachineGenerator.createInstance(image, enterprise, hypervisor, user, "name"); VirtualImageConversion imageConversion = eg().createInstance(image, DiskFormatType.VDI_SPARSE); List<Object> entitiesToSetup = new ArrayList<Object>(); entitiesToSetup.add(datacenter); entitiesToSetup.add(enterprise); entitiesToSetup.add(role); entitiesToSetup.add(user); entitiesToSetup.add(machine); entitiesToSetup.add(hypervisor); entitiesToSetup.add(image); entitiesToSetup.add(virtualMachine); entitiesToSetup.add(imageConversion); ds().persistAll(entitiesToSetup.toArray()); VirtualImageConversionDAO dao = createDaoForReadWriteTransaction(); dao.getUnbundledConversion(image, virtualMachine.getHypervisor().getType().baseFormat); Assert.assertEquals(DiskFormatType.VDI_SPARSE, virtualMachine.getVirtualMachineTemplate() .getDiskFormatType()); }