public void testClassGen() {
final List<Class<?>> classes = new ArrayList<Class<?>>();
classes.add(java.lang.Runnable.class);
classes.add(java.lang.Appendable.class);
ContextFactory cf = ContextFactory.getGlobal();
cf.call(new ContextAction() {
public Object run(Context cx) {
Class<?> c1 = EventAdapter.getAdapterClass(classes.toArray(), null);
Class<?> c2 = EventAdapter.getAdapterClass(classes.toArray(), null);
assertTrue(c1.getSuperclass() == Object.class);
assertTrue(Runnable.class.isAssignableFrom(c1));