public void testInfrastructure() throws Exception {
final List<String> list = new ArrayList<String>();
ServiceRegistryEntry ref = new StaticServiceRegistryEntry(list, "mybean", "mymod", ClassUtils.getDefaultClassLoader());
final ProxyFactory proxyFactory = creator.createProxyFactory(new StaticServiceReferenceProxyFactorySource(classes, ref), null, null);
Object proxy = proxyFactory.getProxy();
assertTrue(proxy instanceof List);
assertFalse(proxy instanceof ArrayList);
assertTrue(proxy instanceof InfrastructureProxy);
InfrastructureProxy iproxy = (InfrastructureProxy) proxy;