### Question:
DatabaseConnection { DatabaseConnection() { } DatabaseConnection();  DatabaseConnection(final Connection conn); @SuppressWarnings("deprecation") void dispose(); void test(); Connection getConnection(); void setConnection(final Connection connection); PreparedStatement prepareStatement(final String sql, final List<SQLParam> params); PreparedStatement prepareStatement(DatabaseQueryBuilder query); CallableStatement prepareCall(final String sql, final List<SQLParam> params); void commit();  }### Answer:
@Test public void testDatabaseConnection() { ExpectProxy<Connection> tp = new ExpectProxy<Connection>(); DatabaseConnection dbc = new DatabaseConnection(tp.getProxy(Connection.class)); assertNotNull(dbc); assertNotNull(dbc.getConnection()); }