### Question:
XMLGISElementUtil { public static void readGISElementAttributes(Element element, GISElement primitive, PathBuilder pathBuilder, XMLResources resources) throws IOException { XMLAttributeUtil.readAttributeContainer(element, primitive, pathBuilder, resources, false); primitive.setName(XMLUtil.getAttributeValueWithDefault(element, null, XMLUtil.ATTR_NAME)); } private  XMLGISElementUtil(); static Element writeMapElement(MapElement primitive, XMLBuilder builder, XMLResources resources); @SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"}) static Element writeMapElement(MapElement primitive, String primitiveNodeName,
			XMLBuilder builder, XMLResources resources); static MapElement readMapElement(Element element, String elementNodeName,
			PathBuilder pathBuilder, XMLResources resources); @SuppressWarnings({"unchecked", "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"}) static T readMapElement(Element element, String elementNodeName,
			Class<T> type, PathBuilder pathBuilder, XMLResources resources); static String getDefaultMapElementNodeName(Class<? extends MapElement> type); static void writeGISElementContainer(Element xmlNode, GISElementContainer<?> primitive,
			XMLBuilder builder, PathBuilder pathBuilder, XMLResources resources); static void writeGISElementContainer(Element xmlNode, GISElementContainer<?> primitive,
			String elementNodeName, XMLBuilder builder, PathBuilder pathBuilder, XMLResources resources); static void readGISElementContainer(Element xmlNode,
			GISElementContainer<T> primitive, PathBuilder pathBuilder, XMLResources resources); @SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth", "resource"}) static void readGISElementContainer(Element xmlNode,
			GISElementContainer<T> primitive, String elementNodeName, PathBuilder pathBuilder,
			XMLResources resources); static void writeGISElementAttributes(Element element, GISElement primitive, XMLBuilder builder,
			XMLResources resources); static void readGISElementAttributes(Element element, GISElement primitive, PathBuilder pathBuilder,
			XMLResources resources); static final String NODE_CIRCLE; static final String NODE_ELEMENTS; static final String NODE_GROUP; static final String NODE_GROUPS; static final String NODE_MULTIPOINT; static final String NODE_POINT; static final String NODE_POINTS; static final String NODE_POLYGON; static final String NODE_POLYLINE; static final String ATTR_DOUBLEFRAME; static final String ATTR_FIRSTPOINTINDEX; static final String ATTR_LASTPOINTINDEX; static final String ATTR_RADIUS; static final String ATTR_SIZE; static final String ATTR_WIDE; static final String ATTR_WIDTH; static final String ATTR_X; static final String ATTR_Y; }### Answer:
@Test public void readGISElementAttributesElementGISElementPathBuilderXMLResources() throws Exception { PathBuilder pathBuilder = new SimplePathBuilder(); XMLResources res = new XMLResources(pathBuilder); MapPoint point = new MapPoint(3, 4); XMLGISElementUtil.readGISElementAttributes(this.document.getDocumentElement(), point, pathBuilder, res); assertEquals("name1", point.getName()); assertEquals("Text", point.getAttribute("attr1", (String) null)); }