StandardExecutionEnvironment implements Comparable<StandardExecutionEnvironment>, ExecutionEnvironment { @Override public String getProfileName() { return profileName; } @Deprecated  StandardExecutionEnvironment(@Nonnull Properties profileProperties);   StandardExecutionEnvironment(@Nonnull Properties profileProperties, @Nullable Toolchain toolchain,
            @Nullable Logger logger); @Override String getProfileName(); @Override String getCompilerSourceLevelDefault(); @Override String getCompilerTargetLevelDefault(); @Override String toString(); @Override Collection<SystemPackageEntry> getSystemPackages(); @Override int compareTo(StandardExecutionEnvironment otherEnv); @Override int hashCode(); @Override boolean equals(Object obj); @Override Properties getProfileProperties(); @Override boolean isCompatibleCompilerTargetLevel(String target);  }
@Test public void testGetProfileName() { assertEquals("JavaSE-16", javaSE16Environment.getProfileName()); assertEquals("JavaSE-15", javaSE15Environment.getProfileName()); assertEquals("JavaSE-14", javaSE14Environment.getProfileName()); assertEquals("JavaSE-11", javaSE11Environment.getProfileName()); assertEquals("JavaSE-9", javaSE9Environment.getProfileName()); assertEquals("JavaSE-1.8", javaSE8Environment.getProfileName()); assertEquals("JavaSE-1.7", javaSE7Enviroment.getProfileName()); assertEquals("JavaSE-1.6", javaSE6Enviroment.getProfileName()); assertEquals("J2SE-1.5", j2SE5Enviroment.getProfileName()); assertEquals("J2SE-1.4", j2SE14Environment.getProfileName()); assertEquals("J2SE-1.3", j2SE13Environment.getProfileName()); assertEquals("J2SE-1.2", j2SE12Environment.getProfileName()); assertEquals("JRE-1.1", jre11Environment.getProfileName()); assertEquals("CDC-1.0/Foundation-1.0", cdc10Environment.getProfileName()); assertEquals("CDC-1.1/Foundation-1.1", cdc11Environment.getProfileName()); assertEquals("OSGi/Minimum-1.0", osgiMin10Environment.getProfileName()); assertEquals("OSGi/Minimum-1.1", osgiMin11Environment.getProfileName()); assertEquals("OSGi/Minimum-1.2", osgiMin12Environment.getProfileName()); assertEquals("JavaSE/compact1-1.8", javaSECompact1Enviroment.getProfileName()); assertEquals("JavaSE/compact2-1.8", javaSECompact2Enviroment.getProfileName()); assertEquals("JavaSE/compact3-1.8", javaSECompact3Enviroment.getProfileName()); }