assertTrue(!file1.exists() && file2.exists());
assertTrue(!file1.exists()); assertTrue(file2.exists());
	public void testMultipleFileManagers() {		String fileName = "testMultipleFileManagers.txt";		File file1 = new File(base, fileName+".1");		File file2 = new File(base, fileName+".2");		manager1 = new FileManager(base, null);		try {			manager1.open(true);			File file = manager1.lookup(fileName, true);			assertNotNull(file);			file = manager1.createTempFile(fileName);			writeToFile(file, "test contents #1");			manager1.update(new String[] {fileName}, new String[] {file.getName()});						// ensure file is version #1			file = manager1.lookup(fileName, false);			assertNotNull(file);			assertTrue(file.getName().endsWith(".1"));			assertTrue(file1.exists());						//new fileMangager using version #1			manager2 = new FileManager(base, null);			manager2.open(true);			// sanity check			file = manager2.lookup(fileName, false);			assertNotNull(file);			assertTrue(file.getName().endsWith(".1"));			assertTrue(file1.exists() && !file2.exists());						// back to manager #1, update file again, close			file = manager1.createTempFile(fileName);			writeToFile(file, "test contents #2");			manager1.update(new String[] {fileName}, new String[] {file.getName()});			//sanity check			assertTrue(file1.exists() && file2.exists());			manager1.close();			manager1 = null;			// both files better still exists			assertTrue(file1.exists() && file2.exists());						// manager #2			// sanity check			file = manager2.lookup(fileName, false);			assertNotNull(file);			assertTrue(file.getName().endsWith(".1"));			// close manager2, cleanup should occur			manager2.close();			manager2 = null;			assertTrue(!file1.exists() && file2.exists());						// new manager1, does it get version 1?			manager1 = new FileManager(base, null);			manager1.open(true);			file = manager1.lookup(fileName, false);			assertNotNull(file);			assertTrue(file.getName().endsWith(".2"));			manager1.close();					manager1 = null;		} catch(IOException e) {			e.printStackTrace();			fail(e.getMessage());		}	}