@Test
public void testActiveAlarms() throws Exception {

    EntityDataStoreManager manager = m_persistenceManager.getEntityDataStoreManager();
    AlarmInfo alarmInfo = buildAlarmInfo();
    m_alarmService.raiseAlarm(alarmInfo);
    manager.beginTransaction();
    m_alarmQueue.clearQueue();
    manager.commitTransaction();
    assertEquals(1, m_internalAlarmService.getActiveAlarms());
}