### Question:
App { public static void main(String[] args) throws IOException { FileWriterAction writeHello = writer -> { writer.write("Hello"); writer.append(" "); writer.append("there!"); }; new SimpleFileWriter("testfile.txt", writeHello); }  static void main(String[] args);  }### Answer:
@Test public void test() throws IOException { String[] args = {}; App.main(args); }
@Test void shouldExecuteApplicationWithoutException() { assertDoesNotThrow(() -> App.main(new String[]{})); }