fail(e.getMessage());
fail("unexpected exception", e);
	public void testExistingVersion() {		String testFile = "testExistingVersion.txt";		manager1 = new FileManager(base, null);		try {			manager1.open(false);			File file1 = new File(base, testFile+".1");			File file2 = new File(base, testFile+".2");			File file3 = new File(base, testFile+".3");			File file4 = new File(base, testFile+".4");			if (file1.exists() || file2.exists() || file3.exists() || file4.exists()) {				fail("Test files already exists.");				return;			}			// create file version (1)			manager1.add(testFile);			File file = manager1.createTempFile(testFile);			writeToFile(file, "contents irrelevant");			manager1.update(new String[] {testFile}, new String[] {file.getName()});			if (!file1.exists() || file2.exists() || file3.exists() || file4.exists()) {				fail("Failed to create a single test file");				return;			}						// create file version (2) outside filemanager			writeToFile(file2, "file2 exists");			// update another file after generation 2 already exists...			file = manager1.createTempFile(testFile);			writeToFile(file, "file 3 contents");			manager1.update(new String[] {testFile}, new String[] {file.getName()});			if (!file3.exists() || file4.exists()) {				fail("Failed to skip existing filemanager file.");				return;			}						// open a new manager, ensure a lookup results in file version (3)			manager2 = new FileManager(base, null);			manager2.open(true);			file = manager2.lookup(testFile, false);			if (file == null) {				fail("Unable to lookup exising file");				return;			}			assertTrue(file.getName().endsWith(".3"));			assertTrue(file.exists());			FileInputStream fis = new FileInputStream(file);			assertEquals(getInputStreamContents(fis), "file 3 contents");						manager2.close();			manager2=null;						manager1.close();			manager1=null;		} catch(IOException e) {			fail(e.getMessage());		}	}