### Question:
LinkdTopologyProvider extends AbstractTopologyProvider implements GraphProvider { @Override public void save() { List<WrappedVertex> vertices = new ArrayList<WrappedVertex>(); for (Vertex vertex : getVertices()) { if (vertex.isGroup()) { vertices.add(new WrappedGroup(vertex)); } else { vertices.add(new WrappedLeafVertex(vertex)); } } List<WrappedEdge> edges = new ArrayList<WrappedEdge>(); for (Edge edge : getEdges()) { WrappedEdge newEdge = new WrappedEdge(edge, new WrappedLeafVertex(m_vertexProvider.getVertex(edge.getSource().getVertex())), new WrappedLeafVertex(m_vertexProvider.getVertex(edge.getTarget().getVertex()))); edges.add(newEdge); } WrappedGraph graph = new WrappedGraph(getEdgeNamespace(), vertices, edges); JAXB.marshal(graph, new File(m_configurationFile)); } LinkdTopologyProvider(); String getConfigurationFile(); void setConfigurationFile(String configurationFile); SnmpInterfaceDao getSnmpInterfaceDao(); void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao); NodeDao getNodeDao(); void setNodeDao(NodeDao nodeDao); boolean isAddNodeWithoutLink(); void setAddNodeWithoutLink(boolean addNodeWithoutLink); DataLinkInterfaceDao getDataLinkInterfaceDao(); void setDataLinkInterfaceDao(DataLinkInterfaceDao dataLinkInterfaceDao); void onInit(); @Override void refresh(); @Override void load(String filename); static String getIconName(OnmsNode node); @Override void save(); IpInterfaceDao getIpInterfaceDao(); void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao); static final String TOPOLOGY_NAMESPACE_LINKD; static final String GROUP_ICON_KEY; static final String SERVER_ICON_KEY; }### Answer:
@Test public void testSave() { m_topologyProvider.setConfigurationFile("target/test-map.xml"); m_topologyProvider.save(); m_databasePopulator.check(m_topologyProvider); }