updateTopic(new TopicName(group, topic), patch);
}
public void updateTopic(TopicName topicName, PatchData patch) {
Topic beforeUpdate = endpoints.topic().get(topicName.qualifiedName());
Topic reference = Patch.apply(beforeUpdate, patch);
<BUG>ofNullable(reference.getMessageSchema()).ifPresent(s ->
assertThat(endpoints.schema().save(reference.getQualifiedName(), false, s).getStatus()).isEqualTo(CREATED.getStatusCode()));</BUG>
assertThat(endpoints.topic().update(topicName.qualifiedName(), patch).getStatus()).isEqualTo(OK.getStatusCode());
wait.untilTopicUpdated(reference);
}

updateTopic(new TopicName(group, topic), patch);
}
public void updateTopic(TopicName topicName, PatchData patch) {
Topic beforeUpdate = endpoints.topic().get(topicName.qualifiedName());
Topic reference = Patch.apply(beforeUpdate, patch);
assertThat(endpoints.topic().update(topicName.qualifiedName(), patch).getStatus()).isEqualTo(OK.getStatusCode());
wait.untilTopicUpdated(reference);
}
