350351352353354355356357358
" </handler>" + " </handlers>" + "</handlerManager>"; HandlerManager hm = (HandlerManager) xstream.fromXML(xml); Handler h = (Handler) hm.getHandlers().get(0); Protocol p = h.getProtocol(); assertEquals("foo", p.getId()); }