@Test
public void testJavaSEVersionNameMappings() throws Exception {

    List<SystemCapability> javaSeVersions = new ArrayList<>();
    for (String version : new String[] { "1.2.0", "1.3.0", "1.4.0", "1.5.0", "1.6.0", "1.7.0" }) {
        SystemCapability capability = new SystemCapability(Type.OSGI_EE, "JavaSE", version);
        javaSeVersions.add(capability);
    }
    customExecutionEnvironment = new CustomExecutionEnvironment("name", javaSeVersions);
    assertThat(customExecutionEnvironment.getProfileProperties().size(), is(3));
    assertProperty(Constants.FRAMEWORK_EXECUTIONENVIRONMENT,
            "J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6,JavaSE-1.7");
}