@Test
public void testPmaContactsDMAndCMToExecuteNC()
        throws ExecutionException, NetconfMessageBuilderException, IOException, SAXException {

    Map<NetConfResponse , List<Notification>> netConfResponseListMap = m_pmaSession.executeNC(REQ_STR);
    Map.Entry<NetConfResponse , List<Notification>> entry = netConfResponseListMap.entrySet().iterator().next();
    String response = entry.getKey().responseToString();
    ArgumentCaptor<AbstractNetconfRequest> reqCaptor = ArgumentCaptor.forClass(AbstractNetconfRequest.class);
    verify(m_cm).executeNetconf(eq(m_device1Meta), reqCaptor.capture());
    TestUtil.assertXMLEquals(DocumentUtils.stringToDocument(REQ_STR).getDocumentElement(),
            DocumentUtils.stringToDocument(reqCaptor.getValue().requestToString()).getDocumentElement());
    TestUtil.assertXMLEquals(DocumentUtils.stringToDocument(OK_RESPONSE).getDocumentElement(),
            DocumentUtils.stringToDocument(response).getDocumentElement());
}