@Test
    public void testNullDataSource() {
        val dbProfileService = new DbProfileService(null, FIRSTNAME);
        dbProfileService.setPasswordEncoder(DbServer.PASSWORD_ENCODER);
        TestsHelper.expectException(() -> dbProfileService.validate(null, null),
            TechnicalException.class, "dataSource cannot be null");
    }
Tests the {@link DbProfileService}.

@author Jerome Leleu
@since 1.8.0
pac4j-sql/src/test/java/org/pac4j/sql/profile/service/DbProfileServiceTests.java