@Test
public void testClearAlarmsOnNodeAndSubtreeForEmptyAlarmList() {

    PersistenceManagerUtil persistenceManagerUtil = mock(PersistenceManagerUtil.class);
    EntityDataStoreManager entityDataStoreManager = mock(EntityDataStoreManager.class);
    AlarmServiceImpl alarmService = new AlarmServiceImpl(persistenceManagerUtil, m_alarmQueue);
    Map<String, String> matchValue = new HashMap<String, String>();
    List<Alarm> alarms = new ArrayList<Alarm>();
    when(persistenceManagerUtil.getEntityDataStoreManager()).thenReturn(entityDataStoreManager);
    // when empty alarm list is returned
    when(entityDataStoreManager.findLike(Alarm.class, matchValue)).thenReturn(alarms);
    alarmService.clearAlarmsOnNodeAndSubtree(MODEL_NODE_ID, MOUNT_KEY);
    verify(m_notificationService, times(0)).sendNotification(eq(AlarmConstants.ALARM_STREAM_NAME),
            any(DefaultAlarmStateChangeNotification.class));
}