@Test
public void testAlarmNotification() throws Exception {

    Element expectedAlarmNotificationElement = loadAsXml(EXPECTED_ALARM_NOTIFICATION);
    long timeInMillis = 1465967097648L;
    Timestamp now = new Timestamp(timeInMillis);
    AlarmNotification notification = new AlarmNotification(
            "{baa-network-manager}(http://www.example.com/network-manager/managed-devices?revision=2015-07-14)testId", "",
            TEST_RESOURCE, now, AlarmSeverity.CRITICAL,
            "Test", AlarmCondition.ALARM_ON, MOUNT_KEY, null);
    Element alarmNotificationElement = new AlarmsDocumentTransformer(m_schemaRegistry, null)
            .getAlarmNotificationElement(notification);
    assertXMLEquals(expectedAlarmNotificationElement, alarmNotificationElement, m_ignoreElements);
}