@Test
public void testSaveSingle() throws Exception {

    // rawKeyVersion 1.0
    DocumentTranslator documentTranslator = new DocumentTranslator(TestUtils.createTranslatorConfigWithRawKeyV1());
    hbaseDataStore = new HBaseDataStore(hbaseTableConnection, mapper, documentTranslator);
    Document expectedDocument = new Document();
    expectedDocument.setId(UUID.randomUUID()
                                   .toString());
    expectedDocument.setTimestamp(System.currentTimeMillis());
    JsonNode data = mapper.valueToTree(Collections.singletonMap("TEST_NAME", "SINGLE_SAVE_TEST"));
    expectedDocument.setData(data);
    hbaseDataStore.save(TEST_APP, expectedDocument);
    validateSave(v1FormatKey(expectedDocument.getId()), expectedDocument);
    // rawKeyVersion 2.0
    documentTranslator = new DocumentTranslator(TestUtils.createTranslatorConfigWithRawKeyV2());
    hbaseDataStore = new HBaseDataStore(hbaseTableConnection, mapper, documentTranslator);
    expectedDocument = new Document();
    expectedDocument.setId(UUID.randomUUID()
                                   .toString());
    expectedDocument.setTimestamp(System.currentTimeMillis());
    data = mapper.valueToTree(Collections.singletonMap("TEST_NAME", "SINGLE_SAVE_TEST"));
    expectedDocument.setData(data);
    hbaseDataStore.save(TEST_APP, expectedDocument);
    validateSave(documentTranslator.translate(TEST_APP, expectedDocument)
                         .getMetadata()
                         .getRawStorageId(), expectedDocument);
}