@Test
public void testToDbId() {

    String actualDbId = AlarmUtil.toDbId(m_schemaRegistry, m_dsm, MODEL_NODE_ID, AlarmUtil.getPrefixToNsMap(MODEL_NODE_ID, m_dsm, m_schemaRegistry, null));
    assertEquals(DB_ID, actualDbId);
    actualDbId = AlarmUtil.toDbId(m_schemaRegistry, m_dsm, YET_ANOTHER_MODEL_NODE_ID, AlarmUtil.getPrefixToNsMap(YET_ANOTHER_MODEL_NODE_ID, m_dsm, m_schemaRegistry, null));
    assertEquals(YET_ANOTHER_DB_ID, actualDbId);
    actualDbId = AlarmUtil.toDbId(m_schemaRegistry, m_dsm, INTF_MODEL_NODE_ID, AlarmUtil.getPrefixToNsMap(INTF_MODEL_NODE_ID, m_dsm, m_schemaRegistry, null));
    assertEquals(DB_ID_FOR_INTF, actualDbId);
    Map<String, Pair<String, SchemaRegistry>> prefixToNsMap = new HashMap<>();
    Pair<String, SchemaRegistry> pair = new Pair<String, SchemaRegistry>(AlarmTestConstants.BAA_NAMESPACE, m_schemaRegistry);
    prefixToNsMap.put("baa", pair);
    pair = new Pair<String, SchemaRegistry>(AlarmTestConstants.NETWORK_MANAGER_NAMESPACE, m_schemaRegistry);
    prefixToNsMap.put("adh", pair);
    pair = new Pair<String, SchemaRegistry>(IF_INTF_NS, m_mountRegistry);
    prefixToNsMap.put("if", pair);
    String actualString = AlarmUtil.xPathString(prefixToNsMap, m_schemaRegistry, INTF_MODEL_NODE_ID);
    assertEquals(DB_ID_WITH_INTF, actualString);
}