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

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