@Test
public void testCheckMutateRow() {

  Mutation mutation = Mutation.create();
  mutation.setCell("family", "qualifier", "some other value");
  ConditionalRowMutation conditonalMutation =
      ConditionalRowMutation.create(TABLE_ID, "first" + "-row" + "-key").then(mutation);
  CheckAndMutateRowRequest request = conditonalMutation.toProto(REQUEST_CONTEXT);
  CheckAndMutateRowResponse response =
      CheckAndMutateRowResponse.newBuilder().setPredicateMatched(true).build();
  when(client.checkAndMutateRow(request)).thenReturn(response);
  Boolean actual = clientWrapper.checkAndMutateRow(conditonalMutation);
  verify(client).checkAndMutateRow(request);
  assertTrue(actual);
}