TargetInstanceValidator extends AbstractBaseValidator { public boolean supports(Class aClass) { return aClass.equals(TargetInstanceCommand.class); } TargetInstanceValidator(); boolean supports(Class aClass); void validate(Object aCommand, Errors aErrors);  }
@Test public final void testSupports() { assertTrue(testInstance.supports(TargetInstanceCommand.class)); assertFalse(testInstance.supports(TargetInstanceProfileCommand.class)); }