// make sure that extra file that was underneath the dest dir was removed
assert !extraSubdirFile.exists() : "the extra file in subdir1 was not removed during initial deploy";
// now purge the bundle - this should only purge those files that were laid down by the bundle plus the metadata directory
BundlePurgeRequest purgeRequest = new BundlePurgeRequest();
purgeRequest.setLiveResourceDeployment(createNewBundleDeployment(deployment));
purgeRequest.setBundleManagerProvider(new MockBundleManagerProvider());
purgeRequest.setAbsoluteDestinationDirectory(this.destDir);
BundlePurgeResult purgeResults = plugin.purgeBundle(purgeRequest);
assertResultsSuccess(purgeResults);
// make sure our bundle files have been completely purged; the metadata directory should have been purged too