class AbstractDataSourceChecker implements DataSourceChecker {

    @Override
    public final void checkConnection(final Collection<? extends DataSource> dataSources) {
        try {
            for (DataSource each : dataSources) {
                each.getConnection().close();
            }
        } catch (final SQLException ex) {
            throw new PrepareFailedException("Data sources can't connected!", ex);
        }
    }

}