genericTestImplementation(new LdapEndpoint("Salzburg Research (LDAP)", "ldap.bu.edu", 389),
"cn=Sergio Fernandez,ou=USERS,ou=SRFG,dc=salzburgresearch,dc=at");
}
private void genericTestImplementation(Endpoint endpoint, String resource) throws Exception {
ClientConfiguration config = new ClientConfiguration();
config.addEndpoint(endpoint);
LDClientService ldclient = new TestLDClient(new LDClient(config));
ClientResponse response = ldclient.retrieveResource(resource);
RepositoryConnection connection = response.getTriples().getConnection();
connection.begin();
Assert.assertTrue(connection.size() > 0);