title: Spring Boot is not loading the properties from a YML file
body: <p>My test file is :</p>
  
  <pre><code>@ActiveProfiles("test")
  @RunWith(SpringJUnit4ClassRunner.class)
  @SpringBootTest
  public class MyApplicationTest {
      @InjectMocks
      @Autowired
      protected MyController myController;
  
  } 
  </code></pre>
  
  <p>My <code>Controller</code> file is:</p>
  
  <pre><code>@RestController
  @RequestMapping(value="${app.base-path}")  // Unable to load this property
  public class MyController {
  
  }
  </code></pre>
  
  <p>I have tried <code>@TestPropertySource</code> but did not work. 
  The <code>SpringBootApplication</code> works fine.
  This is not the case with <code>@Value</code> annotation.
  Fields decorated with <code>@Value</code> annotation works just fine.</p>