}
@Test
public void parameter_with_default() throws Exception
{
final BindingSource source = mockBindingSource();
final InternalComponentResources resources = mockInternalComponentResources();
final Binding binding = mockBinding();
ComponentDefaultProvider defaultProvider = newMock(ComponentDefaultProvider.class);
String boundValue = "howdy!";
final Logger logger = mockLogger();
MutableComponentModel model = mockMutableComponentModel(logger);
model.addParameter("value", false, true, BindingConstants.PROP);
Runnable phaseTwoTraining = new Runnable()
{
public void run()
{
train_isBound(resources, "value", false);
expect(source.newBinding("default value", resources, BindingConstants.PROP,
"literal:greeting")).andReturn(binding);
resources.bindParameter("value", binding);
train_isInvariant(resources, "value", true);