ValidationManager extends CustomValidatorBean { @Override public boolean supports(Class<?> clazz) { return rulesContainer.supportsClass(clazz); }  @Override boolean supports(Class<?> clazz); Errors validate(Object target); Errors validate(Object target, Object... validationHints); @Override void validate(Object target, Errors errors); @Override void validate(Object target, Errors errors, Object... validationHints); @SuppressWarnings("rawtypes") Object convertRuleArgument(Object ruleArg, RuleExecutor executor);  }
@Test public void testSupportsClassOfQ() { Mockito.when(container.supportsClass(String.class)).thenReturn(true); Mockito.when(container.supportsClass(List.class)).thenReturn(false); assertTrue(validationManager.supports(String.class)); assertFalse(validationManager.supports(List.class)); }