}
@Test
public void parameter_with_default() throws Exception
{
final BindingSource source = mockBindingSource();
final InternalComponentResources resources = mockInternalComponentResources();
final Binding binding = mockBinding();
String boundValue = "howdy!";
MutableComponentModel model = mockMutableComponentModel();
model.addParameter("value", false, TapestryConstants.PROP_BINDING_PREFIX);
Runnable phaseTwoTraining = new Runnable()
{
public void run()
{
train_isBound(resources, "value", false);
expect(
source.newBinding(
"default value",
resources,
TapestryConstants.PROP_BINDING_PREFIX,
"literal:greeting")).andReturn(binding);