@Test public void findTopicsByAppIdAndTypeTest() { TopicDto topic = generateTopicDto(null, TopicTypeDto.OPTIONAL); List<TopicDto> found = topicService.findTopicsByAppIdAndType(topic.getApplicationId(), TopicTypeDto.OPTIONAL); Assert.assertEquals(1, found.size()); Assert.assertEquals(topic, found.get(0)); }