@Test public void testGetSetRequiresDuplicateDetection() { // Arrange Boolean expectedRequiresDuplicateDetection = true; TopicInfo topicInfo = new TopicInfo(); // Act Boolean actualRequiresDuplicateDetection = topicInfo .setRequiresDuplicateDetection(expectedRequiresDuplicateDetection) .isRequiresDuplicateDetection(); // Assert assertEquals(expectedRequiresDuplicateDetection, actualRequiresDuplicateDetection); }