@Test
public void testContainerIdWithEpoch() throws URISyntaxException {

  ContainerId id = TestContainerId.newContainerId(0, 0, 0, 25645811);
  String cid = id.toString();
  assertEquals("container_0_0000_00_25645811", cid);
  ContainerId gen = ContainerId.fromString(cid);
  assertEquals(gen.toString(), id.toString());
  long ts = System.currentTimeMillis();
  ContainerId id2 =
      TestContainerId.newContainerId(36473, 4365472, ts, 4298334883325L);
  String cid2 = id2.toString();
  assertEquals(
      "container_e03_" + ts + "_36473_4365472_999799999997", cid2);
  ContainerId gen2 = ContainerId.fromString(cid2);
  assertEquals(gen2.toString(), id2.toString());
  ContainerId id3 =
      TestContainerId.newContainerId(36473, 4365472, ts, 844424930131965L);
  String cid3 = id3.toString();
  assertEquals(
      "container_e767_" + ts + "_36473_4365472_1099511627773", cid3);
  ContainerId gen3 = ContainerId.fromString(cid3);
  assertEquals(gen3.toString(), id3.toString());
}