### Question:
ChronosClient { public long getTimestamp() throws IOException { return chronosClientWatcher.getTimestamp(); } ChronosClient(ChronosClientWatcher chronosClientWatcher);  ChronosClient(Properties properties);  ChronosClient(String zkQuorum, String clusterName); long getTimestamps(int range); long getTimestamp(); void close(); static void main(String[] argv); ChronosClientWatcher getChronosClientWatcher(); static final String ZK_QUORUM; static final String CLUSTER_NAME; static final String SESSION_TIMEOUT; static final String CONNECT_RETRY_TIMES; }### Answer:
@Test public void testGetTimestamp() throws IOException, InterruptedException, TTransportException, ChronosException { final ChronosServer chronosServer = createChronosServer(new HostPort("127.0.0.1", 2187)); Thread thread = new Thread() { @Override public void run() { chronosServer.run(); } }; thread.start(); Thread.sleep(500); ChronosClient chronosClient = createChronosServer(); long timestamp1 = chronosClient.getTimestamp(); long timestamp2 = chronosClient.getTimestamp(); assertTrue(timestamp1 < timestamp2); chronosServer.stopThriftServer(); chronosServer.getFailoverWatcher().close(); chronosClient.getChronosClientWatcher().close(); }