@Test
public void testAlarmRpcOutputElement() throws Exception {

    long timeInMillis = 1465967097648L;
    Timestamp now = new Timestamp(timeInMillis);
    AlarmParameters parameter = new AlarmParameters(
            "{baa-network-manager}(http://www.example.com/network-manager/managed-devices?revision=2015-07-14)testId", "",
            TEST_RESOURCE, now, AlarmSeverity.CRITICAL,
            "Test");
    Element expectedAlarmRpcElement = loadAsXml(EXPECTED_ALARM_RPC_OUTPUT_DEVICE_HOLDER);
    Element alarmRpcOutputElement = new AlarmsDocumentTransformer(m_schemaRegistry, null)
            .getAlarmRpcOutputElement(AlarmTestConstants.NETWORK_MANAGER_NAMESPACE, "1", Arrays.asList(parameter));
    assertXMLEquals(expectedAlarmRpcElement, alarmRpcOutputElement, m_ignoreElements);
    expectedAlarmRpcElement = loadAsXml(EXPECTED_ALARM_RPC_OUTPUT);
    alarmRpcOutputElement = new AlarmsDocumentTransformer(m_schemaRegistry, null).getAlarmRpcOutputElement(AlarmConstants.ALARM_NAMESPACE,
            "1", Arrays.asList(parameter));
    assertXMLEquals(expectedAlarmRpcElement, alarmRpcOutputElement, m_ignoreElements);
}