docs: public static void writeText(String text, File output) {
          PrintWriter pw = null;
          try {
              pw = new PrintWriter(new FileWriter(output));
              pw.write(text);
          } catch (Exception e) {
              throw new MockitoException("Problems writing text to file: " + output, e);
          } finally {
              close(pw);
          }
      }