Sparking inside

My microwave has started sparking inside. Bad. Don’t dare to use it anymore. I have heard this could be the wave guide cover or the magentron. How do I test to determine what the problem actually is?