@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 (DataStoreException ex) {
        assertEquals(DataStoreException.ErrorCode.STORE_SINGLE_SAVE, ex.getErrorCode());
    }
}