@Test
public void testSaveBulkHBaseCloseException() throws Exception {

    List<Document> documents = new Vector<Document>();
    documents.add(new Document(UUID.randomUUID().toString(),
            System.currentTimeMillis(),
            mapper.valueToTree(Collections.singletonMap("TEST_NAME", "BULK_SAVE_TEST"))));
    doThrow(new IOException())
            .when(tableInterface)
            .close();
    HBaseDataStore.save(TEST_APP, documents);
    verify(tableInterface, times(1)).close();
}