### Question:
ListedProfile { public static String calculateProfileName(File file) { return calculateProfileName(file.getName()); } ListedProfile(String profileName); String getLabel(); String getName(); static String calculateProfileName(File file); static String calculateProfileName(String name); static boolean isPropertyFile(File file); static boolean isPropertyFile(String name); static boolean isYaml(File file); static boolean isYaml(String name); boolean isBaseProfile(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void calculateProfileName() { assertEquals("unknown",ListedProfile.calculateProfileName("application-dev")); assertEquals("unknown-test-dev",ListedProfile.calculateProfileName("test-dev.properteis")); assertEquals("dev",ListedProfile.calculateProfileName("application-dev.properties")); assertEquals("dev",ListedProfile.calculateProfileName("application-dev.yml")); assertEquals("dev",ListedProfile.calculateProfileName("application-dev.yaml")); assertEquals("",ListedProfile.calculateProfileName("application.properties")); assertEquals("",ListedProfile.calculateProfileName("application.yml")); assertEquals("",ListedProfile.calculateProfileName("application.yaml")); }