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 = ModelCommons.asRepository(response.getData()).getConnection();
connection.begin();
Assert.assertTrue(connection.size() > 0);
connection.commit();
connection.close();