title: How to inject a service component in Spring Test class using Kotlin?
body: <p>I am trying to test the business logic/services. Using Kotlin in my Spring Boot application, I am trying to instantiate my services, using the test class constructor. But this is not allowed, as I am getting a <code>ParameterResolutionException</code>.</p>
  <p>This is my code:</p>
  <pre><code>@SpringBootTest
  class IntermediateApplicationTests(val ticketService: TicketService) {
  
  
      @Test
      fun contextLoads() {
      }
  
  }
  </code></pre>
  <p>How can I achieve this?</p>
  <p>Thanks for every help!</p>