assertTrue(source.contains("@com.google.web.bindery.autobean.shared.impl.EnumMap.ExtraEnums("
+ "{test.Simple.SimpleContext.GetByIdRequest.GetByIdEnum.class})"));
}
private static JavaSource createMockJavaSource(String typeName, final String... lines) {
return new JavaSource(typeName) {
@Override
public String getSource() {
StringBuilder code = new StringBuilder();
for (String line : lines) {
code.append(line + "\n");