public void validFieldWithRendererDefined() throws Exception {
assertTrue(testee.validateFieldMetadata(customFieldMetadata(EasyMock.createMock(FieldValueRenderer.class)), DomainType.class, validationContext).isEmpty());
}
private CustomFieldMetadata customFieldMetadata(final FieldValueRenderer<Object> renderer) {
return new CustomFieldMetadata("Custom Field", renderer);
}