@After
public void cleanUpConfigInAnyCase() {
ConfigurationAccess.getConfig().overrideCleansStackTrace(false);
ConfigurationAccess.getConfig().overrideDefaultAnswer(null);
StateMaster state = new StateMaster();
//catch any invalid state left over after test case run
//this way we can catch early if some Mockito operations leave weird state afterwards
state.validate();
//reset the state, especially, reset any ongoing stubbing for correct error messages of tests that assert unhappy paths
state.reset();
}