}
public void testFreeMarkerTrans_bind(FilterSettings filterSettings) throws SAXException, IOException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("test-configs-ext-04.cdrl"));
StringReader input;
ExecutionContext context;
smooks.setFilterSettings(filterSettings);
context = smooks.createExecutionContext();
input = new StringReader("<a><b><c x='xvalueonc2' /></b></a>");
smooks.filterSource(context, new StreamSource(input));
assertEquals("<mybean>xvalueonc2</mybean>", context.getBeanContext().getBean("mybeanTemplate"));
context = smooks.createExecutionContext();
input = new StringReader("<c x='xvalueonc1' />");
smooks.filterSource(context, new StreamSource(input), null);
assertEquals("<mybean>xvalueonc1</mybean>", context.getBeanContext().getBean("mybeanTemplate"));
}