Details
Description
RDBDataSourceFactory is used only for testing, and creates instances of org.apache.tomcat.jdbc.pool.DataSource.
These are currently created with default config, while org.apache.sling.datasource (which is likely used in production) uses it's own defaults. In particular, it configures three interceptors – StatementCache;SlowQueryReport(threshold=10000);ConnectionState – which we do not, thus they aren't getting unit test coverage.