@Test
public void testReadyWithMergeError() {

    YangInstanceIdentifier yangInstanceIdentifier = YangInstanceIdentifier.empty();
    NormalizedNode<?, ?> normalizedNode = mock(NormalizedNode.class);
    RuntimeException error = new RuntimeException("mock");
    doThrow(error).when(readWriteTransaction).merge(yangInstanceIdentifier, normalizedNode);
    localTransactionContext.executeMerge(yangInstanceIdentifier, normalizedNode, null);
    localTransactionContext.executeMerge(yangInstanceIdentifier, normalizedNode, null);
    verify(readWriteTransaction).merge(yangInstanceIdentifier, normalizedNode);
    doReadyWithExpectedError(error);
}