public void testSingleChangedBundleMultipleVersions() {
Collection<ArtifactData> bundleData = m_backend.getBundleData(MULTIPLEVERSIONGATEWAY, VERSION1, VERSION4);
assert bundleData.size() == 2 : "Expected one bundle to be found, but found " + bundleData.size();
Iterator<ArtifactData> it = bundleData.iterator();
while(it.hasNext()) {
ArtifactData data = it.next();
if (data.equals(BUNDLE3_2)) {
assert !data.hasChanged() : "The data should not have been changed.";
} else if (data.equals(BUNDLE4_2)) {
assert data.hasChanged() : "The data should have been changed.";
} else {
assert false : "Unknown bundle found";
}
}
}