props.setProperty("config.baz", "1.2.3.4");
props.setProperty("config.myBean.class", MyBean.class.getName());
props.setProperty("config.myBean.foo", "flopp");
props.setProperty("config.myBean.bar", "123");
Configuration config = new PropertiesConfiguration(props);
MyOtherBean otherBean = (MyOtherBean) ConfigurationClassUtils.createBean(config, null);
assertEquals(InetAddress.getByName("1.2.3.4"), otherBean.getBaz());
MyBean bean = otherBean.getMyBean();