introduced JUnit rule for InApplicationMonitor testing