}
@Test
public void factory_throws_exception()
{
BindingFactory factory = mockBindingFactory();
ComponentResources container = mockComponentResources();
ComponentResources component = mockComponentResources();
Location l = mockLocation();
Throwable t = new RuntimeException("Simulated failure.");
String defaultPrefix = "def";
String description = "descrip";
String expression = "full expression";
factory.newBinding(description, container, component, expression, l);
setThrowable(t);
replay();
Map<String, BindingFactory> map = newMap();