Input output implemented with interface and how to make a mock to enable unit testing with custom input.