Method write is testable now, end writting the test for class ConsoleOutput