title: Test is not read a value of a properties file
body: <p>I'm developing an app (Java) and there is a test that it fails me. This mistake is because I want to read a value that it's in a properties file, but this value is null however If I execute my app skipping the tests, it works ok, it reads the value of the properties file without problem, Do I have to do something different to read this property in test package?</p>
  
  <p><strong>My test class</strong></p>
  
  <pre><code>@Test
  public void shouldBeControllerInitial() {
  
     String index = initController.init();
  
     assertEquals("Should be same to the index, it's main page", INDEX,
                  index);
  }
  </code></pre>
  
  <p><strong>My controller class</strong></p>
  
  <pre><code>@Controller
  @RequestMapping(value = "/")
  public class InitController {
  
      @Value("${path.index}")
      private String index;
  
      @RequestMapping(method = RequestMethod.GET)
      public String init() {
  
          return index;
      }
  
  }
  </code></pre>
  
  <p><strong>My config class</strong></p>
  
  <pre><code>@Configuration
  @PropertySource("classpath:/path.properties")
  public class Config {
  
      @Bean
      public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer(){
          return new PropertySourcesPlaceholderConfigurer();
      }
  </code></pre>
  
  <p><strong>error message</strong></p>
  
  <pre><code>java.lang.AssertionError: Should be same to the index, it's main page
  expected:&lt;index&gt; but was:&lt;null&gt; ...
  </code></pre>
  
  <p>Can anyone help ?</p>