metadata.addMetaData(ConnectionFactoryInterceptor.CONNECTION_MANAGER, ConnectionFactoryInterceptor.MANAGED_CONNECTION_FACTORY, mcf);
DataSource ds = (DataSource) assertCreateHollowProxy(new Class[] { DataSource.class }, metadata, DataSource.class);
Connection c = ds.getConnection();
assertNotNull(c);
assertTrue(c instanceof TestConnection);
TestConnection tc = (TestConnection) c;
assertNotNull(tc.getManagedConnectionFactory());
assertTrue(mcf == tc.getManagedConnectionFactory());
}