### Question:
ConfigUtils { String getNormalizedPackagePrefix(String packagePrefix) { int dot = packagePrefix.length() - 1; while (dot >= 0 && packagePrefix.charAt(dot) == '.') { dot -= 1; } return packagePrefix.substring(0, dot + 1); }  List<String> getNormalizedPackages(String packages); String getStringValue(Properties props, String propertyName, String defaultValue); String getStringValue2(
      Properties props, String propertyName1, String propertyName2, String defaultValue); Optional<String> getStringValue(Properties props, String propertyName); boolean getBooleanValue(Properties props, String key, boolean defaultValue); int getIntValue(Properties props, String key, int defaultValue); String getEnvVarName(String propertyName); String getSystemPropertyName(String key); List<File> getCommaSeparatedFileValues(String uriValues);  }### Answer:
@Test public void testGetNormalizedPackagePrefix1() { assertThat(getNormalizedPackagePrefix("prefix....."), is("prefix")); }
@Test public void testGetNormalizedPackagePrefix2() { assertThat(getNormalizedPackagePrefix("prefix."), is("prefix")); }
@Test public void testGetNormalizedPackagePrefix3() { assertThat(getNormalizedPackagePrefix("prefix.foobar..."), is("prefix.foobar")); }
@Test public void testGetNormalizedPackagePrefix4() { assertThat(getNormalizedPackagePrefix("prefix"), is("prefix")); }
@Test public void testGetNormalizedPackagePrefix5() { assertThat(getNormalizedPackagePrefix("p"), is("p")); }
@Test public void testGetNormalizedPackagePrefix6() { assertThat(getNormalizedPackagePrefix(""), is("")); }