Override a list property for Typesafe Config

Today I naively was trying to override a list property for a unit test with the following code System.setProperty("list.property", """[ "val1", "val2"]""") The tested code is reading the list property using typesafe config library val listProperty = config.getListString.asScala.toSet That was throwing com.typesafe.config.ConfigException$WrongType: system properties: list.property has »