fab.toString());
}
public void testAddInterface()
{
InterfaceFab fab = newInterface("ExtendInterface");
fab.addInterface(Runnable.class);
fab.addInterface(Serializable.class);
Class ic = fab.createInterface();
MethodIterator mi = new MethodIterator(ic);
MethodSignature sig = mi.next();
assertEquals(new MethodSignature(void.class, "run", null, null), sig);
assertFalse(mi.hasNext());
assertEquals(
"InterfaceFabImpl[\npublic interface ExtendInterface extends java.lang.Runnable, java.io.Serializable\n]",
fab.toString());
}