ParfaitDataSource implements DataSource { @Override public Connection getConnection() throws SQLException { return proxyConnection(wrapped.getConnection()); } ParfaitDataSource(DataSource wrapped); @Override Connection getConnection(); @Override Connection getConnection(String username, String password); @Override PrintWriter getLogWriter(); @Override void setLogWriter(PrintWriter out); @Override int getLoginTimeout(); @Override Logger getParentLogger(); @Override void setLoginTimeout(int seconds); @Override boolean isWrapperFor(Class<?> iface); @Override T unwrap(Class<T> iface); final ThreadMetric getCounterMetric(); final ThreadMetric getTimeMetric(); Collection<ThreadMetric> getThreadMetrics();  }
@Test public void testExecutingNonProxiedMethod() throws SQLException { DatabaseMetaData data = dataSource.getConnection().getMetaData(); assertEquals("HSQL Database Engine", data.getDatabaseProductName()); }