convenience method for creating mockito rule