// expectations
MethodDef mth = new MethodDef();
mth.name = "doSomething";
mth.returns = "void";
FieldDef p1 = new FieldDef();
p1.name = "numberOfTimes";
p1.type = "int";
mth.params.add(p1);
FieldDef p2 = new FieldDef();
p2.name = "name";
p2.type = "String";
mth.params.add(p2);
FieldDef p3 = new FieldDef();
p3.name = "x";
p3.type = "boolean";
mth.params.add(p3);
builder.addExpectedAddMethodValues(mth);