@Test
public void testSave() throws Exception {

    doNothing().when(getDataStore())
            .initializeTable(any(Table.class), anyBoolean());
    doNothing().when(getQueryStore())
            .initializeTable(any(String.class));
    Table table = Table.builder()
            .name(TEST_TABLE_NAME)
            .ttl(7)
            .build();
    Entity<Table> tableEntity = Entity.json(table);
    resources.client()
            .target("/v1/tables")
            .request()
            .post(tableEntity);
    Table response = tableManager.get(table.getName());
    assertNotNull(response);
    assertEquals(table.getName(), response.getName());
    assertEquals(table.getTtl(), response.getTtl());
    reset(tableManager);
    reset(getQueryStore());
    reset(getDataStore());
}