@Test
public void testClose() throws IOException {

  bulkMutationWrapper.close();
  try {
    bulkMutationWrapper.add(RowMutationEntry.create("key"));
    Assert.fail("bulk mutation should be closed");
  } catch (IllegalStateException actualEx) {
    assertEquals("can't mutate when the bulk mutation is closed.", actualEx.getMessage());
  }
}