public String getTopicName() {
    return topicName == null ? INVALID_TOPIC_NAME : topicName;
  }
@Test
  public void shouldUseNameFromWithClauseWhenNameIsAlsoPresent() {
    // When:
    final TopicProperties properties = new TopicProperties.Builder()
        .withName("oh no!")
        .withWithClause(
            Optional.of("name"),
            Optional.of(1),
            Optional.empty(),
            Optional.of((long) 100)
        )
        .build();

    // Then:
    assertThat(properties.getTopicName(), equalTo("name"));
  }