NullApplicationConsole implements ApplicationConsole { @Override public boolean isDiagnosticsEnabled() { return false; } NullApplicationConsole(); @Override void close(); @Override PrintWriter getOutputWriter(); @Override PrintWriter getErrorWriter(); @Override Reader getInputReader(); @Override boolean isDiagnosticsEnabled(); static ApplicationConsoleBuilder builder();  }
@Test public void shouldNotBeDiagnosticMode() throws Exception { NullApplicationConsole console = new NullApplicationConsole(); assertThat(console.isDiagnosticsEnabled(), is(false)); }