BindingSource bindingSource = mockBindingSource();
ComponentMessagesSource messagesSource = newMock(ComponentMessagesSource.class);
ComponentResources resources = mockComponentResources();
Location location = mockLocation();
AttributeToken token = new AttributeToken("fred", "${flintstone", location);
replay();
PageElementFactory factory = new PageElementFactoryImpl(source, resolver, typeCoercer, bindingSource,
messagesSource);