}
@Test(enabled = ENABLE_TESTS)
public void testInventoryMergePerf() throws Exception {
// remove existing packages
InstalledPackageCriteria criteria = new InstalledPackageCriteria();
criteria.addFilterResourceId(resource1.getId());
criteria.clearPaging();
List<InstalledPackage> installedPackages = contentManager.findInstalledPackagesByCriteria(
subjectManager.getOverlord(), criteria);
if (!installedPackages.isEmpty()) {
int[] ids = new int[installedPackages.size()];
int i = 0;