org.sonar.api.config
Class Settings

java.lang.Object
  extended by org.sonar.api.config.Settings
All Implemented Interfaces:
BatchComponent, ServerComponent

public class Settings
extends Object
implements BatchComponent, ServerComponent

Project settings on batch side, or global settings on server side. This component does not access to database, so property changed via setter methods are not persisted.

For testing, you can create a new empty Settings component using Settings() and then populate it using all variant of setProperty.
If you want to test with default values of your properties taken into account there are two ways dependening on how you declare your properties.