* <p>This case has been added with
* <a href="https://github.com/junit-team/junit/issues/1019">Issue #1019</a>
*/
@Test
public void rejectClassRuleThatIsImplemetationOfMethodRule() {
TestClass target = new TestClass(TestWithClassRuleIsImplementationOfMethodRule.class);
CLASS_RULE_VALIDATOR.validate(target, errors);
assertOneErrorWithMessage("The @ClassRule 'classRule' must implement TestRule.");
}