Smooks smooks = new Smooks(getClass().getResourceAsStream("smooks-config-failed-select-02.xml"));
try {
ExecutionContext execContext = smooks.createExecutionContext();
BeanContext beanContext = execContext.getBeanContext();
BeanIdStore beanIdStore = execContext.getContext().getBeanIdStore();
BeanId requiredOrderNumId = beanIdStore.register("requiredOrderNum");
beanContext.addBean(requiredOrderNumId, 9999, null);
try {
smooks.filterSource(execContext, new StringSource("<doc/>"), null);
fail("Expected DataSelectionException");