AsmGenerator agen = new AsmGenerator(mLog, mOsDestJar,
null, // classes to inject in the final JAR
null, // methods to force override
new String[] { // classes to rename (so that we can replace them)
"mock_android.view.View", "mock_android.view._Original_View",
"not.an.actual.ClassName", "anoter.fake.NewClassName",
},
null // methods deleted from their return type.
);
AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, agen,
null, // derived from
new String[] { // include classes
"**"
});
aa.analyze();
agen.generate();
Set<String> notRenamed = agen.getClassesNotRenamed();
assertArrayEquals(new String[] { "not/an/actual/ClassName" }, notRenamed.toArray());