@Test
public void testGetServerProperties() throws TException {

  final String version = "v0.1";
  @SuppressWarnings("serial") final List<String> supportedAggregationTime = new ArrayList<String>() {
    {
      add("max_time");
      add("min_time");
    }
  };
  final String timestampPrecision = "ms";
  when(client.getProperties())
      .thenReturn(new ServerProperties(version, supportedAggregationTime, timestampPrecision));
  connection.setClient(client);
  assertEquals(connection.getServerProperties().getVersion(), version);
  for (int i = 0; i < supportedAggregationTime.size(); i++) {
    assertEquals(connection.getServerProperties().getSupportedTimeAggregationOperations().get(i),
        supportedAggregationTime.get(i));
  }
  assertEquals(connection.getServerProperties().getTimestampPrecision(), timestampPrecision);
}