@Test
public void testGetActiveAlarms() throws Exception {

    EntityDataStoreManager manager = m_persistenceManager.getEntityDataStoreManager();
    // Raise an alarm with resourceObject as string and verify active alarms
    AlarmInfo alarmInfo = buildAlarmInfoWithResourceTypeString();
    m_alarmService.raiseAlarm(alarmInfo);
    manager.beginTransaction();
    m_alarmQueue.clearQueue();
    manager.commitTransaction();
    assertEquals(1, m_internalAlarmService.getActiveAlarms());
    //Raise an alarm with resourceobject as modelnodeid
    alarmInfo = buildAlarmInfo();
    m_alarmService.raiseAlarm(alarmInfo);
    manager.beginTransaction();
    m_alarmQueue.clearQueue();
    manager.commitTransaction();
    assertEquals(2, m_internalAlarmService.getActiveAlarms());
}