@Test
public void testReady() throws Exception {

    getHandle().write(PATH, DATA);
    final DOMStoreThreePhaseCommitCohort cohort = getHandle().ready();
    final TransactionCommitSuccess response = new TransactionCommitSuccess(TRANSACTION_ID, 0L);
    final ListenableFuture<Boolean> actual = cohort.canCommit();
    final CommitLocalTransactionRequest request =
            backendRespondToRequest(CommitLocalTransactionRequest.class, response);
    assertEquals(modification, request.getModification());
    assertFutureEquals(Boolean.TRUE, actual);
    assertFutureEquals(null, cohort.preCommit());
    assertFutureEquals(null, cohort.commit());
}