expectSecurityToken();
EasyMock.expect(gadget.sanitizeOutput()).andReturn(true);
expectFeatureLookup();
replay();
handler.process(result.getDocumentElement().getFirstChild().getNextSibling(), tag, processor);
XPathWrapper wrapper = new XPathWrapper(result);
assertEquals(wrapper.getValue("/html/head/script[1]"), "swfobject()");
assertEquals(wrapper.getValue("/html/body/div/@id"), "os_xFlash_alt_1");
assertEquals(wrapper.getValue("/html/body/div"), "Click Me");
assertEquals(wrapper.getValue("/html/body/div/@onclick"), "os_xFlash_alt_1()");
assertEquals(wrapper.getValue("/html/body/script[1]"),
"function os_xFlash_alt_1(){ swfobject.embedSWF(\"http://www.example.org/test.swf\","
+ "\"os_xFlash_alt_1\",\"100px\",\"100px\",\"9.0.115\",null,null,"
+ "{\"swliveconnect\":false,\"flashvars\":\"st=12345\",\"allowscriptaccess\":\"never\",\"allownetworking\":\"internal\"},{}); }");
verify();
}