fail(e.getMessage());
fail("unexpected exception", e);
	void checkOpen(boolean open, String permanentFile, String scratchFile) {		// check add()		try {			manager2.add("failFile");			if (!open)				fail("add did not fail.");			manager2.remove("failFile");		} catch(IOException e) {			if (open)				fail(e.getMessage());		}		// check lookup()		try {			// expect TEST2 to exist			manager2.lookup(permanentFile, false);			if (!open)				fail("lookup did not fail.");		} catch(IOException e) {			if (open)				fail(e.getMessage());		}		// check update, first create a real file to add		File tmpFile;		try {			tmpFile = manager2.createTempFile("openTest");			writeToFile(tmpFile, "contents irrelevant");		} catch (IOException e) {			fail(e.getMessage());			tmpFile = null;		}			if (tmpFile != null) {			try {				manager2.update(new String[] {permanentFile}, new String[] {tmpFile.getName()});				if (!open)					fail("update did not fail.");			} catch(IOException e) {				if (open)					fail(e.getMessage());			}		}		// check remove()		try {			manager2.remove(scratchFile);			if (!open)				fail("remove did not fail");			else // add the file back if expected to complete				manager2.add(scratchFile);			} catch(IOException e) {			if (open)				fail(e.getMessage());		}	}