Deque<ClassReplacementDef> replacementDef = replacementDefMap
.replacementClassDef(version0, version1, classInfoFor0);
assertNotNull("must have a definition", replacementDef);
assertEquals("bad number of replacement def", 1, replacementDef.size());
Iterator<ClassReplacementDef> iterator = replacementDef.iterator();
ClassReplacementDef classReplacementDef = iterator.next();
assertEquals("bad original class", classInfoFor0,
classReplacementDef.getOriginalClass());
assertEquals("bad replacement class", classInfoFor1,
classReplacementDef.getReplacementClass());
assertTrue("must not have static replacement def", classReplacementDef
.getStaticFieldConversionMap().isEmpty());
assertTrue("must not have replacement def", classReplacementDef
.getFieldConversionMap().isEmpty());
// check class "a"
replacementDef = replacementDefMap.replacementClassDef(version0,
version1, classInfoForA);
assertNotNull("must have a definition", replacementDef);
assertEquals("bad number of replacement def", 1, replacementDef.size());
iterator = replacementDef.iterator();
classReplacementDef = iterator.next();
assertEquals("bad original class", classInfoForA,
classReplacementDef.getOriginalClass());
assertEquals("bad replacement class", classInfoForA,
classReplacementDef.getReplacementClass());
assertTrue("must not have static replacement def", classReplacementDef
.getStaticFieldConversionMap().isEmpty());
final FieldConversionMap fieldConversionMap = classReplacementDef
.getFieldConversionMap();
assertFalse("must have field replacement def",
fieldConversionMap.isEmpty());
final Set<Entry<FieldInfo, FieldReplacementDef>> set = fieldConversionMap