title: Karate is not loading spring boot class with Autowired annotation
body: <p>I have a requirement to automate apache kafka test where my development team is using @Autowired annotaion to load the beans.</p>
  <pre><code>@Component
  public class getAccountsBuilder {
          @Autowired
          EventBuilder eventBuilder;
  
          
          @Value(&quot;${uk.ipay.contract.account.get.req}&quot;)
          private String getAccountsReqTopic;
  
          private String scope;
          private String email;
  
          public EventData generaterequest(int rowNum) {
                  EventData applicationData = null;
                  Map&lt;Integer, List&lt;String&gt;&gt; paylod;
                  paylod = readData();
                  List&lt;String&gt; payloadData = paylod.get(rowNum);
                  System.out.println(payloadData.get(2));
                  System.out.println(payloadData.get(1));
                  applicationData = generateGetAccountssRequest(payloadData);
  
                  return applicationData;
          }
  
          private Map&lt;Integer, List&lt;String&gt;&gt; readData() {
  
                  return DataProcessing.readFromExcel(
                          &quot;src/test/resources/testData/RequestData_COP.xlsx&quot;,
                          &quot;getAccounts&quot;);
  
          }
  
          /**
           * This will return event for get accounts.
           *
           * @param payloadData - Test data
           * @return - Request event
           */
          private EventData generateGetAccountssRequest(List&lt;String&gt; payloadData) {
  
  
                  /*JWTToken jwtToken = new JWTToken();
                  jwtToken.setScope(payloadData.get(6));
                  jwtToken.setEmail(payloadData.get(6));*/
                  scope = &quot;portal-cop&quot;; //jwtToken.getScope();
                  email = &quot;test01807@mailinator.com&quot;; //jwtToken.getEmail();
  
                  EventData eventData = eventBuilder.buildEventData(&quot;uk.ipay.contract.account.get.req&quot;, email, scope);
                  System.out.println(eventData);
                  return eventData;
  
          }
  }
  
  
  
  </code></pre>
  <p>When I am executing my code, I am getting null value error:</p>
  <p><a href="https://i.stack.imgur.com/Yu6K9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yu6K9.png" alt="enter image description here" /></a></p>
  <p>I am new to spring boot test and karate, So does any one have implemented any such scenarios and knows how to resolve this issue</p>