@Test public void testResourcesClosedWhenIoeOnGetOutputStream() { IOEThrowingHttpCommandProcessor cmdProc = new IOEThrowingHttpCommandProcessor("localhost", 4444, "*chrome", "http://www.google.com"); cmdProc.throwIoeOnGetOutputStream = true; try { cmdProc.getCommandResponseAsString("testCommand"); fail(); } catch (IOException ioe) { cmdProc.verifyClosedResources(true, false, false); } }