FormSupportImpl implements InternalFormSupport, Locatable { public void addValidation(Field field, String validationName, String message, Object constraint) { } FormSupportImpl(ComponentResources resources, String formValidationId);  FormSupportImpl(ComponentResources resources, String clientId, ComponentActionSink actionSink,
                           boolean clientValidationEnabled, IdAllocator idAllocator,
                           String formValidationId); Location getLocation(); String getFormComponentId(); String allocateControlName(String id); void store(T component, ComponentAction<T> action); void storeCancel(T component, ComponentAction<T> action); void storeAndExecute(T component, ComponentAction<T> action); void defer(Runnable command); void executeDeferred(); String getClientId(); String getEncodingType(); void setEncodingType(String encodingType); void addValidation(Field field, String validationName, String message, Object constraint); boolean isClientValidationEnabled(); String getFormValidationId();  }
@Test public void add_validation_when_client_validation_is_disabled() { Field barney = mockField(); ClientBehaviorSupport clientBehaviorSupport = mockClientBehaviorSupport(); replay(); FormSupportImpl support = new FormSupportImpl(null, null, null, false, null, null); support.addValidation(barney, "required", "Who can live without Barney?", null); verify(); }