@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.saveAll(TEST_APP, documents);
        fail();
    } catch (FoxtrotException ex) {
        assertEquals(ErrorCode.STORE_CONNECTION_ERROR, ex.getCode());
    }
}