@Autowired
private DataSource dataSource;
@Test
public void dataSourceShouldBeOneOfKnown() {
DatabaseInfo databaseInfo = DatabaseInfo.retrieve( dataSource );
assertNotNull( databaseInfo );
assertNotNull( databaseInfo.getProductName() );
assertNotNull( databaseInfo.getProductVersion() );
LOG.info( "DatabaseInfo detected database {} - version: {}", databaseInfo.getProductName(),
databaseInfo.getProductVersion() );
assertTrue(
databaseInfo.isHsql()
|| databaseInfo.isOracle()
|| databaseInfo.isSqlServer()
|| databaseInfo.isMySQL()
);
}