@Test
public void invalidValueAvoidsLoggingToConsonle() {

    PrintStream standard = System.out;
    PrintStream printStream = Mockito.mock(PrintStream.class);
    System.setOut(printStream);
    try {
        BannerManager bm = new BannerManager("snafu");
        bm.outputBanner();
    } finally {
        System.setOut(standard);
    }
    Mockito.verify(printStream, Mockito.never()).println(Mockito.anyString());
}