@Test
public void testSaveBulkHBaseWriteException() throws Exception {

    List<Document> documents = new Vector<Document>();
    documents.add(new Document(UUID.randomUUID().toString(),
            System.currentTimeMillis(),
            mapper.valueToTree(Collections.singletonMap("TEST", "TEST"))));
    doThrow(new IOException())
            .when(tableInterface)
            .put(Matchers.anyListOf(Put.class));
    try {
        HBaseDataStore.save(TEST_APP, documents);
        fail();
    } catch (DataStoreException ex) {
        assertEquals(DataStoreException.ErrorCode.STORE_MULTI_SAVE, ex.getErrorCode());
    }
}