@Test
public void testBuilderWithNodes() {

  ClusterSpec cluster = ClusterSpec.builder().withNodes(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10).build();
  Collection<DataCenterSpec> dcs = cluster.getDataCenters();
  assertThat(dcs).hasSize(11);
  Iterator<DataCenterSpec> it = dcs.iterator();
  for (int i = 0; i < 11; i++) {
    DataCenterSpec dc = it.next();
    assertThat(dc.getNodes()).hasSize(i);
    assertThat(dc.getId()).isEqualTo(i);
  }
}