@Test
public void testSaveSingleHBaseWriteException() throws Exception {

    Document document = new Document(UUID.randomUUID()
                                             .toString(), System.currentTimeMillis(),
                                     mapper.valueToTree(Collections.singletonMap("TEST_NAME", "SINGLE_SAVE_TEST"))
    );
    doThrow(new IOException()).when(tableInterface)
            .put(Matchers.<Put>any());
    try {
        hbaseDataStore.save(TEST_APP, document);
        fail();
    } catch (FoxtrotException ex) {
        assertEquals(ErrorCode.STORE_CONNECTION_ERROR, ex.getCode());
    }
}