How to deal with properties in Spring context tests?

@ComponentScan("my.company.example*")
@Configuration
@PropertySource("classpath:/my/company/props/from/file/test.properties")
public class MyTestConfig {

static {
System.setProperty("my.company.hard.coded.props.example", "true"); 
}

/** properties loading */
@Bean
public static PropertySourcesPlaceholderConfigurer properties() {
final PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer();
pspc.setProperties(System.getProperties());
return pspc;
}
}

Usage:

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = MyTestConfig.class)
public class MySpringTest {