A simple JUnit 4 rule which handles the setting up and tearing down of mock objects using the MockK or RelaxedMockK annotations at the beginning and end of each test respectively - without needing to manually call unmockkAll or MockKAnnotations.init.