### Question:
GwtDOMHandler { public static Node getNamedItem(NamedNodeMap map, String uri, String localName) { return map.getNamedItem(localName); } GwtDOMHandler(final Document document); Element createElement(final String tagName); Text createTextNode(final String data); Comment createComment(final String data); CDATASection createCDATASection(final String data); ProcessingInstruction createProcessingInstruction(final String target,
                                                             final String data); Element createElementNS(final String namespaceURI,
                                   final String qualifiedName); Attr createAttributeNS(final String namespaceURI,
                                  final String qualifiedName); Attr setAttributeNS(final Node node,
                               final String namespaceURI,
                               final String qualifiedName,
                               final String value); Attr setAttributeNodeNS(final Node element,
                                   final Attr attr); static Node getNamedItem(NamedNodeMap map,
                                    String uri,
                                    String localName); Document getDocument();  }### Answer:
@Test public void testGetNamedItem() { Element node = mock(Element.class); String namespaceURI = "uri1"; String name = "name1"; NamedNodeMap map = mock(NamedNodeMap.class); when(map.getNamedItem(eq(name))).thenReturn(node); Node result = tested.getNamedItem(map, namespaceURI, name); assertEquals(node, result); }