@Test
public void testToNodeId() {

    ModelNodeId actualNodeId = AlarmUtil.toNodeId(m_schemaRegistry, null, DB_ID);
    assertEquals(MODEL_NODE_ID, actualNodeId);
    actualNodeId = AlarmUtil.toNodeId(m_schemaRegistry, null, YET_ANOTHER_DB_ID);
    assertEquals(YET_ANOTHER_MODEL_NODE_ID, actualNodeId);
    actualNodeId = AlarmUtil.toNodeId(m_schemaRegistry, null, YET_ANOTHER_DB_ID);
    assertNotEquals(YET_ANOTHER_MODEL_NODE_ID_INVALID, actualNodeId);
    actualNodeId = AlarmUtil.toNodeId(m_schemaRegistry, m_dsm, DB_ID_FOR_INTF);
    assertEquals(INTF_MODEL_NODE_ID, actualNodeId);
}