### Question:
TopicServiceImpl implements TopicService { static boolean isNonDefault(ConfigEntry e) { return e.source().equals(ConfigEntry.ConfigSource.DYNAMIC_TOPIC_CONFIG); } TopicServiceImpl(AdminClient adminClient, boolean dryRun); @Override Map<String, ConfiguredTopic> listExisting(boolean excludeInternal); @Override void create(List<ConfiguredTopic> topics); @Override void increasePartitions(List<ConfiguredTopic> topics); @Override void alterConfiguration(List<ConfiguredTopic> topics); @Override void delete(List<ConfiguredTopic> topics);  }### Answer:
@Test public void testIsNonDefault() { ConfigEntry configEntry = mock(ConfigEntry.class); when(configEntry.source()).thenReturn(ConfigEntry.ConfigSource.DYNAMIC_DEFAULT_BROKER_CONFIG); Assert.assertFalse(TopicServiceImpl.isNonDefault(configEntry)); }
@Test public void testIsDefault() { ConfigEntry configEntry = mock(ConfigEntry.class); when(configEntry.source()).thenReturn(ConfigEntry.ConfigSource.DYNAMIC_TOPIC_CONFIG); Assert.assertTrue(TopicServiceImpl.isNonDefault(configEntry)); }