File directory = new File("testdata");
String baseURLString = "http://"
+ serverBinding.getInetAddress().getHostName() + ":"
+ serverBinding.getPort() + "/";
CannedDataReader.readCannedData(store, directory, baseURLString);
Source source = new SourceImpl("http://example.org/graph-source");
NamedNode config = new NamedNodeImpl("http://example.org/config#");
WebServer webServer = GVSServerLauncher.launchGVSServer(store, serverBinding, null, Collections.singleton(source), config);
URL serverURL = new URL("http://"+serverBinding.getInetAddress().getHostAddress()+":"+serverBinding.getPort()+"/application/test-dir/test-data");
InputStream remoteStream = serverURL.openStream();
InputStream resourceStream = ApplicationServerHandler.class.getResourceAsStream("/META-INF/web/application/test-dir/test-data.txt");