title: how to get the values from properties file in the test cases
body: <p>I am getting null while reading the values from .properties file when i am executing the test case. here while debugging the test case i am able to see the values which are loaded from properties file when the curser is there in the test class but when the curser enters into the actual class in that class i am getting the same values as null. And my code is as follows</p>
  
  <p>Thanks in advance </p>
  
  <pre><code>@RestController
  @PropertySource("classpath:/com/example/prop.properties")
  public class ReadProp {
      @Value("${name}")
      private String name;
      @Value("${rollNo}")
      private String rollNo;
      @RequestMapping(value="/")
      public void getDetails(){
          System.out.println(name);
          System.out.println(rollNo);
      }
  }
  and the test case is as follows
  
  @RunWith(SpringRunner.class)
  @SpringBootTest
  @PropertySource("classpath:/com/example/prop.properties")
  public class ReadPropTest {
      private ReadProp readProp = new ReadProp();
      @Value("${name}")
      private String name;
      @Value("${rollNo}")
      private String rollNo;
      @Test
      public void readValues() {
          System.out.println(name);
          System.out.println(rollNo);
          readProp.getDetails();
  
  
      }
  
  }
  </code></pre>