@Test public void testAnonymousStore() throws IOException { StreamStore store1 = StoreFactory.anonymousStore(); StreamStore store2 = StoreFactory.anonymousStore(); File f1 = new File(store1.getLocation(store1.store(resource1()))).getParentFile(); File f2 = new File(store2.getLocation(store2.store(resource1()))).getParentFile(); assertFalse( "Anonymous Stores should not share the same parent (since they are anonymous)", f1.equals(f2)); }