title: Spring boot, read yml properties via integration test case
body: <p>Hi I am using Spring Boot, I want to inject the values of the .yml file in the Bean. I have written the integration test case but looks like via Integration test case it not injecting the values. </p>
  
  <p>Problem is value of urls and keyspaceApp is null</p>
  
  <p>Bean </p>
  
  <pre><code>    @ConfigurationProperties(prefix="cassandra")
  public class TestBean {
  
      @Value("${urls}")
      private String urls;
  
      @Value("${keyspaceApp}")
      private String app;
  
      public void print() {
          System.out.println(urls);
          System.out.println(app);
      }
  
      public String getUrls() {
          return urls;
      }
  
      public void setUrls(String urls) {
          this.urls = urls;
      }
  }
  </code></pre>
  
  <p>Integration Test case </p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(classes = TestBean.class)
  @IntegrationTest
  public class CassandraClientTest {
  
      @Autowired
      private TestBean bean;
  
      @Test
      public void test() {
          bean.print();
      }
  }
  </code></pre>
  
  <p>Application yml file </p>
  
  <pre><code>cassandra:
    urls: lllaaa.com
    keyspaceApp: customer
    createDevKeyspace: true
  </code></pre>