}
@Test
public void parameter_with_default() throws Exception
{
final BindingSource source = newBindingSource();
final InternalComponentResources resources = newInternalComponentResources();
final Binding binding = newBinding();
String boundValue = "howdy!";
MutableComponentModel model = newMutableComponentModel();
model.addParameter("value", false, InternalConstants.PROP_BINDING_PREFIX);
Runnable phaseTwoTraining = new Runnable()
{
public void run()
{
train_isBound(resources, "value", false);
expect(source.newBinding("default value", resources, "literal:greeting"))
.andReturn(binding);
resources.bindParameter("value", binding);
train_isInvariant(resources, "value", true);