Replaced MockitoRule with Java8Rule for tutorial test as the latter was intended.