I have a Spring application-context.xml with PropertyPlaceholderConfigurer to get properties\' values from .properties file. Main and test source folders have separate .prop
I used benkiefer's approach, but I had to add a listener to web.xml:
org.springframework.web.context.ContextLoaderListener