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