@Test
public void testSetProperties() {

    ConfigFactory.setProperties(new Properties() {{
        setProperty("mypath", RESOURCES_DIR);
    }});
    MyConfig cfg = ConfigFactory.create(MyConfig.class);
    assertEquals("foobar", cfg.someValue());
}