KermossProperties { public List<String> topics() { return sinks.values().stream().map(x -> x.getKafka()).collect(Collectors.toList()); }  String getServiceName(); void setServiceName(String serviceName); Map<String, Source> getSources(); void setSources(Map<String, Source> sources); Transport getTransport(); void setTransport(Transport transport); Map<String, Sink> getSinks(); void setSinks(Map<String, Sink> sinks); List<String> topics(); String getHttpDestination(String destinationKey); String getKafkaDestination(String destinationKey); String getFeignDestination(String destinationKey);  }
@Test public void testTopics() { List<String> topics = kermossProperties.topics(); assertThat(topics).hasSize(2).contains("io.kermoss.test.market", "io.kermoss.test.pizza-shop"); }