Spring boot 2 / Spring 5 supports very easy configuration of properties from file to configuration class.
I found it to be little cumbersome to import properties into static.
This minimalistic demo shows how to do it both in main method and also in tests.
Properties:
application.properties
Properties configuration: FacebookProperties
Main Class: PropertiesApplication
Test Class: FacebookPropertiesTests
Enabling and loading properties: LoadConfigProperties