@Test
public void testEditLogFileOutputStreamCloseClose() throws IOException {

  // close after a close should result in an IOE
  EditLogFileOutputStream editLogStream = new EditLogFileOutputStream(conf,
      TEST_EDITS, 0);
  editLogStream.close();
  try {
    editLogStream.close();
  } catch (IOException ioe) {
    String msg = StringUtils.stringifyException(ioe);
    assertTrue(msg, msg.contains("Trying to use aborted output stream"));
  }
}