### Question:
MessageUpdater { public static ConfigurationData getConfigurationData() { return CONFIGURATION_DATA; }  static ConfigurationData getConfigurationData(); boolean migrateAndSave(File userFile, String localJarPath, String defaultJarPath);  }### Answer:
@Test public void shouldHaveAllKeysInConfigurationData() { Set<String> messageKeysFromEnum = Arrays.stream(MessageKey.values()) .map(MessageKey::getKey) .collect(Collectors.toSet()); Set<String> messageKeysFromConfigData = MessageUpdater.getConfigurationData().getProperties().stream() .map(Property::getPath) .collect(Collectors.toSet()); assertThat(messageKeysFromConfigData, equalTo(messageKeysFromEnum)); }
@Test public void shouldHaveCommentForAllRootPathsInConfigurationData() { Set<String> rootPaths = Arrays.stream(MessageKey.values()) .map(key -> key.getKey().split("\\.")[0]) .collect(Collectors.toSet()); Map<String, String[]> comments = ReflectionTestUtils.getFieldValue( ConfigurationData.class, MessageUpdater.getConfigurationData(), "sectionComments"); assertThat(comments.keySet(), equalTo(rootPaths)); }