@Test
public void ttlIsPreservedInGcRule() {

  // TTL of 1 day (in seconds):
  int ttl = 86400;
  descriptor.setTimeToLive(ttl);
  ColumnFamily result = adapter.adapt(descriptor);
  GCRules.GCRule expected =
      GCRULES.union().rule(GCRULES.maxAge(Duration.ofSeconds(ttl))).rule(GCRULES.maxVersions(1));
  Assert.assertEquals(expected.toProto(), result.getGcRule());
}