@Override protected void doTearDown() throws Exception { if (file != null) { file.delete(); } super.doTearDown(); }