Here is the class that gets its pathToFile from application.properties.
@Component
public class CSVReader {
    @Value("${name.basics}")
    private String pathToFile;
   (other code)
}
The problem is: how can I substitute application.properties for testing?
 
    