public void testInvokeWithReturnedValueAsArgAndVar() throws Exception {
setUpScript("testInvokeTag.jelly");
Script script = getJelly().compileScript();
getJellyContext().setVariable("test.invokeWithReturnedValueAsArgAndVar",Boolean.TRUE);
script.run(getJellyContext(),getXMLOutput());
assertNotNull(getJellyContext().getVariable("customer"));
assertTrue(getJellyContext().getVariable("customer") instanceof Customer);
Customer customer = (Customer)(getJellyContext().getVariable("customer"));
assertEquals("Jane Doe",customer.getName());
assertEquals("Chicago",customer.getCity());