@Test
public void to_client_via_translator()
{
Object value = new Integer(99);
ComponentResources resources = mockComponentResources();
FieldTranslator translator = mockFieldTranslator();
NullFieldStrategy nullFieldStrategy = mockNullFieldStrategy();
expect(translator.getType()).andReturn(Integer.class);
String clientValue = "abracadabra";
EasyMock.expect(resources.triggerEvent(EasyMock.eq(EventConstants.TO_CLIENT),
EasyMock.aryEq(new Object[] {value}),
EasyMock.isA(ComponentEventCallback.class))).andReturn(false);
expect(translator.toClient(value)).andReturn(clientValue);
replay();
FieldValidationSupport support = new FieldValidationSupportImpl(typeCoercer);