Mock.. PowerMock..
Set up a project and run a test.
I have a GitHub project Processor6502 which is a learning project with a purpose other than for me to learn, I plan to use it in YouTube videos to teach 6502 assembler.