@@ -0,0 +1,672 @@
+package fi.helsinki.cs.tmc.cli;%0A%0Aimport static org.mockito.Matchers.eq;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.verify;%0A%0Aimport fi.helsinki.cs.tmc.cli.io.Io;%0Aimport fi.helsinki.cs.tmc.cli.io.TerminalIo;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class ShutdownHandlerTest %7B%0A%0A    private Io mockIo;%0A    private ShutdownHandler shutdownHandler;%0A%0A    @Before%0A    public void setUp() %7B%0A        mockIo = mock(TerminalIo.class);%0A        shutdownHandler = new ShutdownHandler(mockIo);%0A    %7D%0A%0A    @Test%0A    public void printsAnsiResetAtRun() %7B%0A        shutdownHandler.run();%0A        verify(mockIo).println(eq(%22%5Cu001B%5B0m%22));%0A    %7D%0A%7D%0A

Add test