@Test
public void testPreCommitChanged() throws SubSystemValidationException, NetconfMessageBuilderException {

    RequestScope.getCurrentScope().putInCache(RequestTask.CURRENT_REQ, m_request);
    m_deviceSubsystem.notifyPreCommitChange(m_changeNotifications);
    verify(m_deviceInterface).veto(eq(m_device), eq(m_request), m_updatedDsCaptor.capture(), m_oldDsCaptor.capture());
    assertEquals(OLD_DS, DocumentUtils.documentToPrettyString(m_updatedDsCaptor.getValue()).trim());
    assertEquals(UPDATED_DS, DocumentUtils.documentToPrettyString(m_oldDsCaptor.getValue()).trim());
}