public void testDetectsExistingFiles()
{
File scratch = FileUtils.getScratchDirectory( "jena-test-FileGraphMaker-already" );
Graph content = graphWith( "something hasProperty someValue" );
FileGraphMaker A = new FileGraphMaker( scratch.getPath(), true );
FileGraphMaker B = new FileGraphMaker( scratch.getPath(), true );
FileGraph gA = (FileGraph) A.createGraph( "already", true );
GraphUtil.addInto( gA, content );
gA.close();
FileGraph gB = (FileGraph) B.openGraph( "already", false );
assertIsomorphic( content, gB );
gB.close();
gB.delete();
gA.delete();
}