@Test
public void testextractAndCreateAlarmEntryFromResponseVersion2() throws NetconfMessageBuilderException, URISyntaxException {

    QNameModule qNameModule = QNameModule.create(new URI(BBF_ALARM_TYPES_NS), REV);
    when(m_module.getQNameModule()).thenReturn(qNameModule);
    when(m_registry.getModuleByNamespace(BBF_ALARM_TYPES_NS)).thenReturn(m_module);
    when(m_device.getDeviceName()).thenReturn("R1.S1.LT1.PON1.ONT1");
    Element notificationElement = DocumentUtils.stringToDocument(getAlarmListStringVersion2()).getDocumentElement();
    List<AlarmInfo> infoList = AlarmNotificationUtil.extractAndCreateAlarmEntryFromResponse(notificationElement, m_registry, m_device, m_deviceAdapterId, AlarmConstants.ALARM_NAMESPACE);
    assertEquals(1, infoList.size());
    AlarmInfo info = infoList.get(0);
    assertEquals("dummyText", info.getAlarmText());
    assertEquals(AlarmSeverity.MAJOR, info.getSeverity());
    Optional<Revision> revision = qNameModule.getRevision();
    StringBuffer fullAlarmTypeId = new StringBuffer();
    fullAlarmTypeId.append("{dpu-al}(").append(BBF_ALARM_TYPES_NS);
    if (revision.isPresent()) {
        fullAlarmTypeId.append("?revision=").append(revision.get());
    }
    fullAlarmTypeId.append(")").append("xdsl-fe-los");
    assertEquals(fullAlarmTypeId.toString(), info.getAlarmTypeId());
    assertEquals("", info.getAlarmTypeQualifier());
    assertEquals(MODEL_NODE_ID, info.getSourceObject());
    assertEquals("R1.S1.LT1.PON1.ONT1", info.getDeviceName());
}