@Test
public void testRoundToSeconds() {

  PartitionSpec spec = new PartitionSpec("test", Collections.emptyList(),
      Interpreter.MILLISECONDS, "YYYY-MM-dd HH:mm:ss", 300);
  assertEquals("2017-01-19 05:05:00", spec.interpret("1484802359000"));
}