MessageSourceFieldFaceSource fieldFaceSource = new MessageSourceFieldFaceSource();
StaticMessageSource messageSource = new StaticMessageSource();
messageSource.addMessage("context.field.caption", Locale.getDefault(), "the caption");
messageSource.addMessage("context.field.description", Locale.getDefault(), "the description");
messageSource.addMessage("context.field.label", Locale.getDefault(), "the label");
messageSource.addMessage("context.field.icon", Locale.getDefault(), "iconName");
fieldFaceSource.setMessageSourceAccessor(new MessageSourceAccessor(messageSource));
IconSource mockIconSource = (IconSource) EasyMock.createMock(IconSource.class);
EasyMock.expect(mockIconSource.getIcon("iconName")).andReturn(testIcon);