title: Setting up api testing in micronaut with Karate
body: <p>I have basic hello world, and i want to set up karate to test it works.. so below is my configuration..</p>
  <p>karate-config.js</p>
  <pre><code>function fn() {
      var url = 'http://localhost:8080';
      return {
          AppUrl: url
      };
  }
  </code></pre>
  <p>TestIT.java class</p>
  <pre><code>public class TestIT {
  
      @Karate.Test
      Karate runAllTests() {
          return Karate.run().tags(&quot;~@ignore&quot;).relativeTo(getClass());
      }
  
  }
  </code></pre>
  <p>feature</p>
  <pre><code>Feature: Info
  
    Background:
      * url AppUrl
  
     Scenario: Info OK
       * def response = read('response/response_success.json')
       Given path '/default'
       When method GET
  
       Then status 200
       Then match response == response
  </code></pre>
  <p>controller</p>
  <pre><code>@Controller(&quot;/default&quot;)
  public class default{
  
      @Get
      public String default() {
  
          return &quot;Hello world&quot;;
      }
  }
  </code></pre>
  <p>When i run this i get the following output</p>
  <pre><code>ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.153 s &lt;&lt;&lt; FAILURE! - in TestIT
  [ERROR] runAllTests[1]  Time elapsed: 1.149 s  &lt;&lt;&lt; ERROR!
  java.util.ServiceConfigurationError: org.graalvm.polyglot.impl.AbstractPolyglotImpl: com.oracle.truffle.polyglot.PolyglotImpl Unable to get public no-arg constructor
  Caused by: java.lang.NoClassDefFoundError: org/graalvm/polyglot/impl/AbstractPolyglotImpl$AbstractManagementDispatch
  Caused by: java.lang.ClassNotFoundException: org.graalvm.polyglot.impl.AbstractPolyglotImpl$AbstractManagementDispatch#
  </code></pre>
  <p>Im new to micronaut, anyone have any ideas how I can get this to work?</p>