I have an application event listener which contains the function:
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
//do some stuff
}
How can I write a unit test to simulate a ContextRefreshedEvent, like my jar being executed, and test that my onApplicationEvent function did what it's supposed to do?
