How to load configuration bean in Unit Tests

Hi
In my App Core module, I’m writing a test class
public class MyAppTestContainer extends TestContainer {

I wonder how loading my config Bean declared like this in the src part

@Source(type = SourceType.APP)
public interface MyAppConfig extends Config {

I tried with

AppBeans.get(MyAppConfig.class) 

but it failed.
I also tried using @Inject but it failed too.

Thanks for your help
Regards,
Guillaume

Hello @guillaume.lundy

You can get you config in the following way:

AppBeans.get(Configuration.class)
    .getConfig(MyConfig.class);

Regards,
Daniil

thanks !
Guillaume