@Test
public void testReadyWithDeleteError() {

    YangInstanceIdentifier yangInstanceIdentifier = YangInstanceIdentifier.empty();
    RuntimeException error = new RuntimeException("mock");
    doThrow(error).when(readWriteTransaction).delete(yangInstanceIdentifier);
    localTransactionContext.executeDelete(yangInstanceIdentifier, null);
    localTransactionContext.executeDelete(yangInstanceIdentifier, null);
    verify(readWriteTransaction).delete(yangInstanceIdentifier);
    doReadyWithExpectedError(error);
}