Map<String, BindingFactory> map = newMap();
map.put(defaultPrefix, factory);
BindingSource source = new BindingSourceImpl(map, interner);
try
{
source.newBinding(description, container, component, defaultPrefix, expression, l);
}
catch (TapestryException ex)
{
assertEquals(ex.getMessage(), "Parameter 'wilma' must have a non-empty binding.");
assertSame(ex.getLocation(), l);