Added a Mockito Rule for JUnit

Let's add another test case: what if someone passes something else than the 'test class' instance? Perhaps the exception is already good for this scenario but I think it would be useful to have an explicit test case anyhow.