@Test
public void ttlIsPreservedInColumnFamily() {

  // TTL of 1 day (in microseconds):
  GCRules.GCRule expected =
      GCRULES
          .union()
          .rule(GCRULES.maxAge(Duration.ofSeconds(86400)))
          .rule(GCRULES.maxVersions(1));
  HColumnDescriptor descriptor = adapter.adapt(columnFamily(expected));
  Assert.assertEquals(1, descriptor.getMaxVersions());
  Assert.assertEquals(86400, descriptor.getTimeToLive());
}