static Collection<String> getMandatoryJvmOptions(int javaMajorVersion){
          return Arrays.stream(MANDATORY_JVM_OPTIONS)
                  .map(option -> jvmOptionFromLine(javaMajorVersion, option))
                  .flatMap(Optional::stream)
                  .collect(Collectors.toUnmodifiableList());
    }
@Test
    public void testMandatoryJvmOptionNonApplicableJvmNotPresent() throws IOException{
        assertFalse("Does not contains add-exports value for Java 11",
                JvmOptionsParser.getMandatoryJvmOptions(11).contains("--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"));
    }