public class com.oracle.truffle.api.test.polyglot.MIMETypeTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.api.test.polyglot.MIMETypeTest
  super_class: java.lang.Object
{
  private static final java.lang.String TEXT_MIMETYPE;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "text/test-js"

  private static final java.lang.String APPLICATION_MIMETYPE;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "application/test-js"

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=1, args_size=0
         0: .line 72
            ldc Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            ldc Lcom/oracle/truffle/api/TruffleLanguage$Registration;
            invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
            checkcast com.oracle.truffle.api.TruffleLanguage$Registration
            astore 0 /* reg */
        start local 0 // com.oracle.truffle.api.TruffleLanguage$Registration reg
         1: .line 73
            aload 0 /* reg */
            ifnull 3
         2: .line 75
            aload 0 /* reg */
            invokeinterface com.oracle.truffle.api.TruffleLanguage$Registration.mimeType:()[Ljava/lang/String;
            pop
        end local 0 // com.oracle.truffle.api.TruffleLanguage$Registration reg
         3: .line 77
      StackMap locals:
      StackMap stack:
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            1    3     0   reg  Lcom/oracle/truffle/api/TruffleLanguage$Registration;

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 66
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;

  public void testMIMETypeLanguage2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 86
            invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
            astore 1 /* engine */
        start local 1 // org.graalvm.polyglot.Engine engine
         1: .line 87
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
            ldc "MIMETypeLanguage2"
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.graalvm.polyglot.Language
            astore 2 /* language */
        start local 2 // org.graalvm.polyglot.Language language
         2: .line 88
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            invokeinterface java.util.Set.size:()I
            iconst_2
            if_icmpne 3
            iconst_1
            goto 4
      StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: invokestatic org.junit.Assert.assertTrue:(Z)V
         5: .line 89
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            ldc "text/test-js"
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         6: .line 90
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            ldc "application/test-js"
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         7: .line 91
            ldc "text/test-js"
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         8: .line 92
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.close:()V
         9: .line 93
            return
        end local 2 // org.graalvm.polyglot.Language language
        end local 1 // org.graalvm.polyglot.Engine engine
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   10     0      this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1   10     1    engine  Lorg/graalvm/polyglot/Engine;
            2   10     2  language  Lorg/graalvm/polyglot/Language;
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testMIMETypeLanguage3();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 101
            invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
            astore 1 /* engine */
        start local 1 // org.graalvm.polyglot.Engine engine
         1: .line 102
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
            ldc "MIMETypeLanguage3"
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.graalvm.polyglot.Language
            astore 2 /* language */
        start local 2 // org.graalvm.polyglot.Language language
         2: .line 103
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            invokeinterface java.util.Set.size:()I
            iconst_1
            if_icmpne 3
            iconst_1
            goto 4
      StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: invokestatic org.junit.Assert.assertTrue:(Z)V
         5: .line 104
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            ldc "text/test-js"
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         6: .line 105
            ldc "text/test-js"
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         7: .line 106
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.close:()V
         8: .line 107
            return
        end local 2 // org.graalvm.polyglot.Language language
        end local 1 // org.graalvm.polyglot.Engine engine
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    9     0      this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1    9     1    engine  Lorg/graalvm/polyglot/Engine;
            2    9     2  language  Lorg/graalvm/polyglot/Language;
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testMIMETypeLanguage4();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 115
            invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
            astore 1 /* engine */
        start local 1 // org.graalvm.polyglot.Engine engine
         1: .line 116
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
            ldc "MIMETypeLanguage4"
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.graalvm.polyglot.Language
            astore 2 /* language */
        start local 2 // org.graalvm.polyglot.Language language
         2: .line 117
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            invokeinterface java.util.Set.size:()I
            iconst_1
            if_icmpne 3
            iconst_1
            goto 4
      StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: invokestatic org.junit.Assert.assertTrue:(Z)V
         5: .line 118
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            ldc "text/test-js"
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         6: .line 119
            ldc "text/test-js"
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         7: .line 120
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.close:()V
         8: .line 121
            return
        end local 2 // org.graalvm.polyglot.Language language
        end local 1 // org.graalvm.polyglot.Engine engine
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    9     0      this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1    9     1    engine  Lorg/graalvm/polyglot/Engine;
            2    9     2  language  Lorg/graalvm/polyglot/Language;
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testDefaultMimeBytes();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=7, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 129
            iconst_0
            anewarray java.lang.String
            invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
            astore 1 /* context */
        start local 1 // org.graalvm.polyglot.Context context
         1: .line 131
            ldc "foobar"
            ldc ".tjs"
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
            astore 2 /* file */
        start local 2 // java.nio.file.Path file
         2: .line 132
            aload 2 /* file */
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokevirtual java.io.File.deleteOnExit:()V
         3: .line 134
            ldc "MIMETypeLanguage5"
            aload 2 /* file */
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/io/File;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 3 /* source */
        start local 3 // org.graalvm.polyglot.Source source
         4: .line 135
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Source.hasBytes:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         5: .line 136
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Source.hasCharacters:()Z
            invokestatic org.junit.Assert.assertFalse:(Z)V
         6: .line 137
            ldc "application/test-js"
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Source.getMimeType:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         7: .line 140
            aload 1 /* context */
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
         8: .line 142
            ldc "MIMETypeLanguage5"
            ldc ""
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            ldc "application/test-js"
            invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 3 /* source */
         9: .line 144
            aload 1 /* context */
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
        10: .line 145
            invokestatic org.junit.Assert.fail:()V
        11: .line 146
            goto 16
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
        12: astore 4 /* e */
        start local 4 // java.lang.IllegalArgumentException e
        13: .line 147
            ldc "Error evaluating the source. MIME type 'application/test-js' is byte based for language 'MIMETypeLanguage5' but the source contents are character based."
        14: .line 148
            aload 4 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
        15: .line 147
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 4 // java.lang.IllegalArgumentException e
        16: .line 151
      StackMap locals:
      StackMap stack:
            ldc "MIMETypeLanguage5"
            ldc ""
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 4 /* byteBasedSource */
        start local 4 // org.graalvm.polyglot.Source byteBasedSource
        17: .line 153
            aload 1 /* context */
            aload 4 /* byteBasedSource */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
        18: .line 154
            invokestatic org.junit.Assert.fail:()V
        19: .line 155
            goto 22
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
        20: astore 5 /* e */
        start local 5 // java.lang.IllegalArgumentException e
        21: .line 156
            ldc "Error evaluating the source. The language MIMETypeLanguage5 only supports binary based sources but a character based source was provided."
            aload 5 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 5 // java.lang.IllegalArgumentException e
        22: .line 159
      StackMap locals:
      StackMap stack:
            ldc "MIMETypeLanguage5"
            ldc ""
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            ldc "application/x-illegal"
            invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 5 /* illegalSource */
        start local 5 // org.graalvm.polyglot.Source illegalSource
        23: .line 161
            aload 1 /* context */
            aload 5 /* illegalSource */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
        24: .line 162
            invokestatic org.junit.Assert.fail:()V
        25: .line 163
            goto 30
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
        26: astore 6 /* e */
        start local 6 // java.lang.IllegalArgumentException e
        27: .line 164
            ldc "Error evaluating the source. The language MIMETypeLanguage5 does not support MIME type application/x-illegal. Supported MIME types are [application/test-js]."
        28: .line 165
            aload 6 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
        29: .line 164
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 6 // java.lang.IllegalArgumentException e
        30: .line 168
      StackMap locals:
      StackMap stack:
            aload 1 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        31: .line 169
            return
        end local 5 // org.graalvm.polyglot.Source illegalSource
        end local 4 // org.graalvm.polyglot.Source byteBasedSource
        end local 3 // org.graalvm.polyglot.Source source
        end local 2 // java.nio.file.Path file
        end local 1 // org.graalvm.polyglot.Context context
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   32     0             this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1   32     1          context  Lorg/graalvm/polyglot/Context;
            2   32     2             file  Ljava/nio/file/Path;
            4   32     3           source  Lorg/graalvm/polyglot/Source;
           13   16     4                e  Ljava/lang/IllegalArgumentException;
           17   32     4  byteBasedSource  Lorg/graalvm/polyglot/Source;
           21   22     5                e  Ljava/lang/IllegalArgumentException;
           23   32     5    illegalSource  Lorg/graalvm/polyglot/Source;
           27   30     6                e  Ljava/lang/IllegalArgumentException;
      Exception table:
        from    to  target  type
           9    11      12  Class java.lang.IllegalArgumentException
          17    19      20  Class java.lang.IllegalArgumentException
          23    25      26  Class java.lang.IllegalArgumentException
    Exceptions:
      throws java.io.IOException
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testDefaultMimeCharacters();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=7, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 181
            iconst_0
            anewarray java.lang.String
            invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
            astore 1 /* context */
        start local 1 // org.graalvm.polyglot.Context context
         1: .line 183
            ldc "foobar"
            ldc ".tjs"
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
            astore 2 /* file */
        start local 2 // java.nio.file.Path file
         2: .line 184
            aload 2 /* file */
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokevirtual java.io.File.deleteOnExit:()V
         3: .line 186
            ldc "MIMETypeLanguage6"
            aload 2 /* file */
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/io/File;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 3 /* source */
        start local 3 // org.graalvm.polyglot.Source source
         4: .line 187
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Source.hasBytes:()Z
            invokestatic org.junit.Assert.assertFalse:(Z)V
         5: .line 188
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Source.hasCharacters:()Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         6: .line 189
            ldc "application/test-js"
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Source.getMimeType:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         7: .line 190
            aload 1 /* context */
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
         8: .line 192
            ldc "MIMETypeLanguage6"
            iconst_4
            newarray 8
            dup
            iconst_0
            iconst_1
            bastore
            dup
            iconst_1
            iconst_2
            bastore
            dup
            iconst_2
            iconst_3
            bastore
            dup
            iconst_3
            iconst_4
            bastore
            invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            ldc "application/test-js"
            invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 3 /* source */
         9: .line 194
            aload 1 /* context */
            aload 3 /* source */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
        10: .line 195
            invokestatic org.junit.Assert.fail:()V
        11: .line 196
            goto 16
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
        12: astore 4 /* e */
        start local 4 // java.lang.IllegalArgumentException e
        13: .line 197
            ldc "Error evaluating the source. MIME type 'application/test-js' is character based for language 'MIMETypeLanguage6' but the source contents are byte based."
        14: .line 199
            aload 4 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
        15: .line 197
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 4 // java.lang.IllegalArgumentException e
        16: .line 202
      StackMap locals:
      StackMap stack:
            ldc "MIMETypeLanguage6"
            iconst_4
            newarray 8
            dup
            iconst_0
            iconst_1
            bastore
            dup
            iconst_1
            iconst_2
            bastore
            dup
            iconst_2
            iconst_3
            bastore
            dup
            iconst_3
            iconst_4
            bastore
            invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 4 /* byteBasedSource */
        start local 4 // org.graalvm.polyglot.Source byteBasedSource
        17: .line 204
            aload 1 /* context */
            aload 4 /* byteBasedSource */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
        18: .line 205
            invokestatic org.junit.Assert.fail:()V
        19: .line 206
            goto 22
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
        20: astore 5 /* e */
        start local 5 // java.lang.IllegalArgumentException e
        21: .line 207
            ldc "Error evaluating the source. The language MIMETypeLanguage6 only supports character based sources but a binary based source was provided."
            aload 5 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 5 // java.lang.IllegalArgumentException e
        22: .line 210
      StackMap locals:
      StackMap stack:
            ldc "MIMETypeLanguage6"
            iconst_4
            newarray 8
            dup
            iconst_0
            iconst_1
            bastore
            dup
            iconst_1
            iconst_2
            bastore
            dup
            iconst_2
            iconst_3
            bastore
            dup
            iconst_3
            iconst_4
            bastore
            invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            ldc "application/x-illegal"
            invokevirtual org.graalvm.polyglot.Source$Builder.mimeType:(Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.build:()Lorg/graalvm/polyglot/Source;
            astore 5 /* illegalSource */
        start local 5 // org.graalvm.polyglot.Source illegalSource
        23: .line 212
            aload 1 /* context */
            aload 5 /* illegalSource */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
        24: .line 213
            invokestatic org.junit.Assert.fail:()V
        25: .line 214
            goto 30
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context java.nio.file.Path org.graalvm.polyglot.Source org.graalvm.polyglot.Source org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
        26: astore 6 /* e */
        start local 6 // java.lang.IllegalArgumentException e
        27: .line 215
            ldc "Error evaluating the source. The language MIMETypeLanguage6 does not support MIME type application/x-illegal. Supported MIME types are [application/test-js]."
        28: .line 216
            aload 6 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
        29: .line 215
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 6 // java.lang.IllegalArgumentException e
        30: .line 219
      StackMap locals:
      StackMap stack:
            aload 1 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        31: .line 220
            return
        end local 5 // org.graalvm.polyglot.Source illegalSource
        end local 4 // org.graalvm.polyglot.Source byteBasedSource
        end local 3 // org.graalvm.polyglot.Source source
        end local 2 // java.nio.file.Path file
        end local 1 // org.graalvm.polyglot.Context context
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   32     0             this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1   32     1          context  Lorg/graalvm/polyglot/Context;
            2   32     2             file  Ljava/nio/file/Path;
            4   32     3           source  Lorg/graalvm/polyglot/Source;
           13   16     4                e  Ljava/lang/IllegalArgumentException;
           17   32     4  byteBasedSource  Lorg/graalvm/polyglot/Source;
           21   22     5                e  Ljava/lang/IllegalArgumentException;
           23   32     5    illegalSource  Lorg/graalvm/polyglot/Source;
           27   30     6                e  Ljava/lang/IllegalArgumentException;
      Exception table:
        from    to  target  type
           9    11      12  Class java.lang.IllegalArgumentException
          17    19      20  Class java.lang.IllegalArgumentException
          23    25      26  Class java.lang.IllegalArgumentException
    Exceptions:
      throws java.io.IOException
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testDefaultMimeCharacters2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 233
            iconst_0
            anewarray java.lang.String
            invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
            astore 1 /* context */
        start local 1 // org.graalvm.polyglot.Context context
         1: .line 235
            ldc "MIMETypeLanguage7"
            iconst_4
            newarray 8
            dup
            iconst_0
            iconst_1
            bastore
            dup
            iconst_1
            iconst_2
            bastore
            dup
            iconst_2
            iconst_3
            bastore
            dup
            iconst_3
            iconst_4
            bastore
            invokestatic org.graalvm.polyglot.io.ByteSequence.create:([B)Lorg/graalvm/polyglot/io/ByteSequence;
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Lorg/graalvm/polyglot/io/ByteSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
            astore 2 /* source */
        start local 2 // org.graalvm.polyglot.Source source
         2: .line 237
            aload 1 /* context */
            aload 2 /* source */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
         3: .line 238
            invokestatic org.junit.Assert.fail:()V
         4: .line 239
            goto 9
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
         5: astore 3 /* e */
        start local 3 // java.lang.IllegalArgumentException e
         6: .line 240
            ldc "Error evaluating the source. The language MIMETypeLanguage7 expects character based sources by default but a binary based source was provided. Provide a binary based source instead or specify a MIME type for the source. Available MIME types for binary based sources are [application/test-js]."
         7: .line 244
            aload 3 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
         8: .line 240
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 3 // java.lang.IllegalArgumentException e
         9: .line 246
      StackMap locals:
      StackMap stack:
            aload 1 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        10: .line 247
            return
        end local 2 // org.graalvm.polyglot.Source source
        end local 1 // org.graalvm.polyglot.Context context
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   11     0     this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1   11     1  context  Lorg/graalvm/polyglot/Context;
            2   11     2   source  Lorg/graalvm/polyglot/Source;
            6    9     3        e  Ljava/lang/IllegalArgumentException;
      Exception table:
        from    to  target  type
           2     4       5  Class java.lang.IllegalArgumentException
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testDefaultMimeBytes2();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=4, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 260
            iconst_0
            anewarray java.lang.String
            invokestatic org.graalvm.polyglot.Context.create:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context;
            astore 1 /* context */
        start local 1 // org.graalvm.polyglot.Context context
         1: .line 262
            ldc "MIMETypeLanguage8"
            ldc ""
            ldc ""
            invokestatic org.graalvm.polyglot.Source.newBuilder:(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;)Lorg/graalvm/polyglot/Source$Builder;
            invokevirtual org.graalvm.polyglot.Source$Builder.buildLiteral:()Lorg/graalvm/polyglot/Source;
            astore 2 /* source */
        start local 2 // org.graalvm.polyglot.Source source
         2: .line 264
            aload 1 /* context */
            aload 2 /* source */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
         3: .line 265
            invokestatic org.junit.Assert.fail:()V
         4: .line 266
            goto 9
      StackMap locals: com.oracle.truffle.api.test.polyglot.MIMETypeTest org.graalvm.polyglot.Context org.graalvm.polyglot.Source
      StackMap stack: java.lang.IllegalArgumentException
         5: astore 3 /* e */
        start local 3 // java.lang.IllegalArgumentException e
         6: .line 267
            ldc "Error evaluating the source. The language MIMETypeLanguage8 expects character based sources by default but a binary based source was provided. Provide a character based source instead or specify a MIME type for the source. Available MIME types for character based sources are [text/test-js]."
         7: .line 271
            aload 3 /* e */
            invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
         8: .line 267
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        end local 3 // java.lang.IllegalArgumentException e
         9: .line 273
      StackMap locals:
      StackMap stack:
            aload 1 /* context */
            invokevirtual org.graalvm.polyglot.Context.close:()V
        10: .line 274
            return
        end local 2 // org.graalvm.polyglot.Source source
        end local 1 // org.graalvm.polyglot.Context context
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   11     0     this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1   11     1  context  Lorg/graalvm/polyglot/Context;
            2   11     2   source  Lorg/graalvm/polyglot/Source;
            6    9     3        e  Ljava/lang/IllegalArgumentException;
      Exception table:
        from    to  target  type
           2     4       5  Class java.lang.IllegalArgumentException
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testMIMETypeLanguageLegacy1();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
         0: .line 291
            invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
            astore 1 /* engine */
        start local 1 // org.graalvm.polyglot.Engine engine
         1: .line 292
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.getLanguages:()Ljava/util/Map;
            ldc "MimeTypeLanguageLegacy1"
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.graalvm.polyglot.Language
            astore 2 /* language */
        start local 2 // org.graalvm.polyglot.Language language
         2: .line 293
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            invokeinterface java.util.Set.size:()I
            iconst_1
            if_icmpne 3
            iconst_1
            goto 4
      StackMap locals: org.graalvm.polyglot.Engine org.graalvm.polyglot.Language
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: invokestatic org.junit.Assert.assertTrue:(Z)V
         5: .line 294
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getMimeTypes:()Ljava/util/Set;
            ldc "text/test-js"
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            invokestatic org.junit.Assert.assertTrue:(Z)V
         6: .line 295
            ldc "text/test-js"
            aload 2 /* language */
            invokevirtual org.graalvm.polyglot.Language.getDefaultMimeType:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
         7: .line 296
            aload 1 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.close:()V
         8: .line 297
            return
        end local 2 // org.graalvm.polyglot.Language language
        end local 1 // org.graalvm.polyglot.Engine engine
        end local 0 // com.oracle.truffle.api.test.polyglot.MIMETypeTest this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    9     0      this  Lcom/oracle/truffle/api/test/polyglot/MIMETypeTest;
            1    9     1    engine  Lorg/graalvm/polyglot/Engine;
            2    9     2  language  Lorg/graalvm/polyglot/Language;
    RuntimeVisibleAnnotations: 
      org.junit.Test()
}
SourceFile: "MIMETypeTest.java"
NestMembers:
  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage1  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage2  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage3  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage4  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage5  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage6  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage7  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage8  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError1  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError10  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError11  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError12  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError13  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError14  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError2  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError3  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError4  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError5  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError6  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError7  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError8  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError9  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy1  com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy2
InnerClasses:
  public abstract Registration = com.oracle.truffle.api.TruffleLanguage$Registration of com.oracle.truffle.api.TruffleLanguage
  public MIMETypeLanguage1 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage1 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguage2 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage2 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguage3 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage3 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguage4 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage4 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguage5 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage5 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguage6 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage6 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguage7 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage7 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguage8 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguage8 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError1 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError1 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError10 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError10 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError11 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError11 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError12 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError12 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError13 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError13 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError14 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError14 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError2 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError2 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError3 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError3 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError4 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError4 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError5 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError5 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError6 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError6 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError7 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError7 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError8 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError8 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageError9 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageError9 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageLegacy1 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy1 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public MIMETypeLanguageLegacy2 = com.oracle.truffle.api.test.polyglot.MIMETypeTest$MIMETypeLanguageLegacy2 of com.oracle.truffle.api.test.polyglot.MIMETypeTest
  public Builder = org.graalvm.polyglot.Source$Builder of org.graalvm.polyglot.Source