assertTrue(test instanceof MockParentInterface2);
assertTrue(test instanceof MockChildInterface1);
assertTrue(test instanceof MockChildInterface2);
assertFalse(test instanceof Comparable);
ProxyFactory proxyFactory;
proxyFactory = mgr.createProxyFactory(new Class[]{MockEndpoint.class, MockParentInterface2.class, MockChildInterface2.class}, myCl);
test = proxyFactory.createProxy(gbean.getAbstractName());
assertTrue(test instanceof MockEndpoint);
assertTrue(test instanceof MockParentInterface1);
assertTrue(test instanceof MockParentInterface2);
assertTrue(test instanceof MockChildInterface1);
assertTrue(test instanceof MockChildInterface2);
assertFalse(test instanceof Comparable);
proxyFactory = mgr.createProxyFactory(new Class[]{MockEndpoint.class, MockParentInterface1.class, MockChildInterface1.class}, myCl);
test = proxyFactory.createProxy(gbean.getAbstractName());
assertTrue(test instanceof MockEndpoint);
assertTrue(test instanceof MockParentInterface1);
assertFalse(test instanceof MockParentInterface2);
assertTrue(test instanceof MockChildInterface1);
assertFalse(test instanceof MockChildInterface2);
assertFalse(test instanceof Comparable);
proxyFactory = mgr.createProxyFactory(new Class[]{MockEndpoint.class, MockParentInterface1.class, MockChildInterface1.class, Comparable.class}, myCl);
test = proxyFactory.createProxy(gbean.getAbstractName());
assertTrue(test instanceof MockEndpoint);
assertTrue(test instanceof MockParentInterface1);
assertFalse(test instanceof MockParentInterface2);
assertTrue(test instanceof MockChildInterface1);
assertFalse(test instanceof MockChildInterface2);
proxyFactory = mgr.createProxyFactory(new Class[]{MockParentInterface1.class, MockChildInterface1.class, Comparable.class}, myCl);
test = proxyFactory.createProxy(gbean.getAbstractName());
assertFalse(test instanceof MockEndpoint);
assertTrue(test instanceof MockParentInterface1);
assertFalse(test instanceof MockParentInterface2);
assertTrue(test instanceof MockChildInterface1);
assertFalse(test instanceof MockChildInterface2);
proxyFactory = mgr.createProxyFactory(new Class[]{MockEndpoint.class, Comparable.class}, myCl);
test = proxyFactory.createProxy(gbean.getAbstractName());
assertTrue(test instanceof MockEndpoint);
assertFalse(test instanceof MockParentInterface1);
assertFalse(test instanceof MockParentInterface2);
assertFalse(test instanceof MockChildInterface1);
assertFalse(test instanceof MockChildInterface2);
proxyFactory = mgr.createProxyFactory(new Class[]{Comparable.class}, myCl);
test = proxyFactory.createProxy(gbean.getAbstractName());
try {
proxyFactory = mgr.createProxyFactory(null, myCl);
fail();
} catch (NullPointerException e) {