Are you sure that path `"src\\main\\resources\\testFile.txt"` will _always_ be the first one in paths list?    
Maybe this would be safer?
``` java
assertThat(paths.toString()).contains("src\\main\\resources\\testFile.txt");
```