public static long toSeconds(org.joda.time.Instant jodaInstant) {
    return jodaInstant.getMillis() / 1000;
  }
@Test
  public void testToSeconds() {
    assertEquals(1, TimestampConverter.toSeconds(org.joda.time.Instant.ofEpochSecond(1)));
    assertEquals(1000, TimestampConverter.toSeconds(org.joda.time.Instant.ofEpochSecond(1000)));
  }