// Create a nested compilation units.
MockCompilationUnit nestedTypeCompilationUnit =
new MockCompilationUnit("com.google.gwt.user.Outer", "superblah") {
@Override
public Collection<CompiledClass> getCompiledClasses() {
MockCompiledClass outerCompiledClass = new MockCompiledClass(null,
"com/google/gwt/user/Outer", "com.google.gwt.user.Outer");
MockCompiledClass innerCompiledClass = new MockCompiledClass(outerCompiledClass,
"com/google/gwt/user/Outer$Inner", "com.google.gwt.user.Outer.Inner");
return Lists.<CompiledClass> newArrayList(outerCompiledClass, innerCompiledClass);
}
};