title: Asking me for CucumberContextConfiguration when I already have
body: <p>I currently working on integration testing of one the Restful APIs. I have received an exception asking me to <code>annotate a glue class</code> using @CucumberContextConfiguration. At the moment, I have</p>
  <p><strong>ApplicationTests.java</strong></p>
  <pre class="lang-java prettyprint-override"><code>import io.cucumber.junit.Cucumber;
  import io.cucumber.junit.CucumberOptions;
  import io.cucumber.spring.CucumberContextConfiguration;
  import org.junit.jupiter.api.Test;
  import org.junit.runner.RunWith;
  import org.springframework.boot.test.context.SpringBootTest;
  
  @RunWith(Cucumber.class)
  @CucumberContextConfiguration
  @SpringBootTest(classes = {VehicleRegApplication.class, 
      VehicleRegApplicationTests.class, 
      CucumberSpringConfiguration.class})
  @CucumberOptions(features = &quot;src/test/resources/Features&quot;, 
      glue = {&quot;com.vehiclereg.StepDefinitions&quot;}, 
      plugin = {&quot;pretty&quot;})
  public class VehicleRegApplicationTests {
  
      @Test
      void contextLoads() {
  
      }
  
  }
  </code></pre>
  <p><strong>CucumberSpringConfiguration.java</strong> in the same folder as the <code>ApplicationTests.java</code></p>
  <pre class="lang-java prettyprint-override"><code>import io.cucumber.spring.CucumberContextConfiguration;
  import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
  import org.springframework.boot.test.context.SpringBootTest;
  import org.springframework.context.annotation.ComponentScan;
  import org.springframework.context.annotation.PropertySource;
  
  @CucumberContextConfiguration
  @SpringBootTest
  @AutoConfigureMockMvc
  public class CucumberSpringConfiguration {
  }
  </code></pre>
  <p>I have <code>cucumber-java</code>, <code>cucumber-spring</code>, <code>cucumber-junit</code>, <code>junit</code> injected. I have done what the exception says and when I run the test the same error comes back.</p>
  <pre><code>io.cucumber.core.backend.CucumberBackendException: Please annotate a glue class with some context configuration.
  </code></pre>
  <p>I wonder if I have done something wrong?</p>