Node result = doc.getOwnerDocument().createDocumentFragment();
Element tag = doc.getOwnerDocument().createElement("test");
// Script and style elements for the library should get registered
// with the first tag for the whole library
handlerWithNoResources.process(result, tag, processor);
assertEquals("<STYLE>libstyle\nlibstyle2</STYLE>" +
"<JAVASCRIPT>libscript\nlibscript2</JAVASCRIPT>",
serializeResources(context));
// Now script and style elements for the tag should get registered