@Test public void removeTopicsByAppIdTest() { TopicDto topic = generateTopicDto(null, null); topicService.removeTopicsByAppId(topic.getApplicationId()); List<TopicDto> found = topicService.findTopicsByAppId(topic.getApplicationId()); Assert.assertNotNull(found); Assert.assertTrue(found.isEmpty()); }