@Test
public void testShouldInheritBuilderProperties() {

  long id = 12L;
  String version = "1.2.19";
  String name = "node0";
  Map<String, Object> peerInfo = new HashMap<>();
  peerInfo.put("hello", "world");
  ClusterSpec cluster =
      ClusterSpec.builder()
          .withId(id)
          .withCassandraVersion(version)
          .withName(name)
          .withPeerInfo(peerInfo)
          .withPeerInfo("goodbye", "world")
          .build();
  Map<String, Object> expectedPeerInfo = new HashMap<>(peerInfo);
  expectedPeerInfo.put("goodbye", "world");
  assertThat(cluster.getId()).isEqualTo(id);
  assertThat(cluster.getCassandraVersion()).isEqualTo(version);
  assertThat(cluster.getName()).isEqualTo(name);
  assertThat(cluster.getPeerInfo()).isEqualTo(expectedPeerInfo);
}