* @throws Exception
*/
public void testAbstractJDKClassProxy() throws Exception
{
log.info("+++ testAbstractJDKClassProxy");
ProxyFactory factory = new ProxyFactory();
HashSet aset = new HashSet();
MyCollectionHandler handler = new MyCollectionHandler(aset);
factory.setHandler(handler);
factory.setSuperclass(java.util.AbstractCollection.class);
Class[] sig = {};
Object[] args = {};
AbstractCollection proxy = (AbstractCollection) factory.create(sig, args);
proxy.add("Add");
assertEquals("size", 1, aset.size());
proxy.remove("Add");
assertEquals("size", 0, aset.size());
assertEquals("isEmpty", true, proxy.isEmpty());