    @Test
    public void testVariableInsertMissingData() throws Exception {

    	String insertElementName="InsertedNode";
    	
        OXPath20ExpressionBPEL20 exp = compile("$reallyEmptyVar/"+insertElementName);
        exp.setInsertMissingData(true);
        
        // Setup root node
        _rootNode = DOMUtils.stringToDOM("<tns:ApplicationData xmlns:tns=\"http://foobar\"/>");
        
        java.util.List<?> list = _runtime.evaluate(exp, this);
        
        if (list == null || list.size() != 0) {
        	fail("List should have no elements");
        }
        
        if (((Element)_rootNode).getElementsByTagName(insertElementName).getLength() != 1) {
        	fail("Missing '"+insertElementName+"' element has not been inserted");
        }
    }