### Question:
LinkdTopologyProvider extends AbstractTopologyProvider implements GraphProvider { public static String getIconName(OnmsNode node) { return node.getSysObjectId() == null ? "linkd:system" : "linkd:system:snmp:"+node.getSysObjectId(); } 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 testGetIcon() { Assert.assertTrue("linkd:system:snmp:1.3.6.1.4.1.5813.1.25".equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode1()))); Assert.assertTrue(LinkdTopologyProvider.SERVER_ICON_KEY.equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode2()))); Assert.assertTrue(LinkdTopologyProvider.SERVER_ICON_KEY.equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode3()))); Assert.assertTrue(LinkdTopologyProvider.SERVER_ICON_KEY.equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode4()))); Assert.assertTrue(LinkdTopologyProvider.SERVER_ICON_KEY.equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode5()))); Assert.assertTrue(LinkdTopologyProvider.SERVER_ICON_KEY.equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode6()))); Assert.assertTrue(LinkdTopologyProvider.SERVER_ICON_KEY.equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode7()))); Assert.assertTrue(LinkdTopologyProvider.SERVER_ICON_KEY.equals(LinkdTopologyProvider.getIconName(m_databasePopulator.getNode8()))); }