### Question:
ChronosClient { public long getTimestamps(int range) throws IOException { return chronosClientWatcher.getTimestamps(range); } 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 testGetTimestamps() throws IOException, InterruptedException, TTransportException, ChronosException { final ChronosServer chronosServer = createChronosServer(new HostPort("127.0.0.1", 2188)); Thread thread = new Thread() { @Override public void run() { chronosServer.run(); } }; thread.start(); Thread.sleep(500); ChronosClient chronosClient = createChronosServer(); long timestamp1 = chronosClient.getTimestamps(100); long timestamp2 = chronosClient.getTimestamps(100); assertTrue(timestamp2 - timestamp1 >= 100); chronosServer.stopThriftServer(); chronosServer.getFailoverWatcher().close(); chronosClient.getChronosClientWatcher().close(); }