e.printStackTrace(); fail(e.getMessage());
fail("unexpected exception", e);
	public void testJavaIOLocking() {		if (!"win32".equalsIgnoreCase(System.getProperty("osgi.os")))			// this is a Windows-only test			return;		String fileName = "testJavaIOLocking";		File lockFile = new File(new File(base,".manager"),".fileTableLock");		assertTrue(lockFile.exists());		FileOutputStream fos = null;		try {			fos = new FileOutputStream(lockFile);			// we hold the lock, lets open a FM			manager1 = new FileManager(base, "java.io");			try {				manager1.open(true); // wait for lock				fail("open with lock succedded");			} catch(IOException e) {				//good			}						manager1.open(false); // don't wait, should work			try {				manager1.add(fileName);				fail("add succedded");			} catch(IOException e) {				//good			}			//sanity check, file should not be managed			assertNull(manager1.lookup(fileName, false));			manager1.close();			manager1 = null;		} catch(IOException e) {			e.printStackTrace();			fail(e.getMessage());		} finally {			try {				if (fos != null)					fos.close();			} catch(IOException e) {				e.printStackTrace();			}		}	}