title: Spring and web integration test of class annotated with @ConditionaOnProperty
body: <p>I'm using Spring Boot 1.4.2.</p>
  
  <p>I have a service annotated as follows</p>
  
  <pre><code>@Service
  @ConditionalOnProperty("${my.property.enabled:false}")
  public class MyService {
  
  }
  </code></pre>
  
  <p>and I want to test it doing an integration tests, e.g.</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest(webEnvironment= SpringBootTest.WebEnvironment.RANDOM_PORT)
  public class MyServiceTest {
  
      @Autowired
      private MyService myService;
  
  }
  </code></pre>
  
  <p>The service is not autowired in the test. I want to avoid setting the property in a properties file inside the test folder. Can't I enable the property directly via such an annotation inside the <code>MyServiceTest</code>?</p>