InputStream atom = this.getClass().getResourceAsStream(fileName + ".atom");
InputStream sparql = this.getClass().getResourceAsStream(fileName+".sparql");
assumeThat("Could not load testfiles", asList(atom, sparql), everyItem(notNullValue(InputStream.class)));
Repository repository = new SailRepository(new MemoryStore());
repository.initialize();
RepositoryConnection connection = repository.getConnection();
try {
connection.add(atom, "http://localhost/atom/", AtomFormat.FORMAT);
connection.commit();