Java mocks a notepad for Windows