@Override public void close() throws Exception { super.close(); if (!openCalled) { fail("Open was not called before close."); } closeCalled = true; }