}
}
@Test
public void testSpyEnabledDataSource() throws SQLException {
DataSource spyDs1 = new JndiDataSourceLookup().getDataSource("jdbc/spyDs1");
// The spy data sources should be spy enabled
validateSpyEnabled(spyDs1);
// verify that the correct database driver was used
assertTrue(spyDs1.getConnection().getMetaData().getDatabaseProductName().contains("H2"));
DataSource spyDs3 = new JndiDataSourceLookup().getDataSource("jdbc/spyDs3");
// The spy data sources should be spy enabled
validateSpyEnabled(spyDs3);
// verify that the correct database driver was used
assertTrue(spyDs3.getConnection().getMetaData().getDatabaseProductName().contains("HSQL"));
}