    @Test
    public void shouldFlushAndCloseProvidedStreamInClose() {

        PrintStream out = mock(PrintStream.class);
        Formatter formatter = new PrettyFormatter(out, true, true);
        formatter.close();
        verify(out).flush();
        verify(out).close();
    }