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

    Map<NetConfResponse, List<Notification>> netConfResponseListMap = m_pmaServer.executeNetconf(m_editRequest);
    Map.Entry<NetConfResponse, List<Notification>> entry = netConfResponseListMap.entrySet().iterator().next();
    NetConfResponse response = entry.getKey();
    verify(m_netconfServer).onEditConfig(eq(PMA_USER), eq(m_editRequest), anyObject());
      assertEquals("<rpc-reply message-id=\"2\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n" +
              "  <data>\n" +
              "    <ok/>\n" +
              "  </data>\n" +
              "</rpc-reply>", response.responseToString().trim());
    String expect = "<rpc-reply message-id=\"2\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n" +
            "  <data>\n" +
            "    <ok/>\n" +
            "  </data>\n" +
            "</rpc-reply>";
    TestUtil.assertXMLEquals(DocumentUtils.stringToDocument(expect).getDocumentElement(),
            DocumentUtils.stringToDocument(response.responseToString().trim()).getDocumentElement());
    verify(m_deviceDataStore).getDeviceXml();
}