@Test
public void testTranslationWithRawKeyVersion1() {

    DocumentTranslator translator = new DocumentTranslator(TestUtils.createTranslatorConfigWithRawKeyV1());
    Table table = new Table();
    table.setName(UUID.randomUUID()
                          .toString());
    Document document = new Document();
    document.setId(UUID.randomUUID()
                           .toString());
    document.setTimestamp(System.currentTimeMillis());
    document.setData(mapper.createObjectNode()
                             .put("name", NAME));
    Document translatedDocument = translator.translate(table, document);
    assertEquals(translatedDocument.getId(), document.getId());
    assertNotNull(translatedDocument.getMetadata());
    assertEquals(translatedDocument.getMetadata()
                         .getId(), document.getId());
    assertEquals(translatedDocument.getMetadata()
                         .getRawStorageId(), document.getId() + ":" + table.getName());
}