@Test
public void testSetCamelPropertiesReference() throws Exception {

    MyClass target = new MyClass();
    Map<String, Object> map = new HashMap<>();
    map.put("id", "123");
    map.put("name", "Donald Duck");
    map.put("option", "#myCoolOption");
    CamelPropertiesHelper.setCamelProperties(camelContext, target, map, true);
    Assert.assertEquals("Should configure all options", 0, map.size());
    Assert.assertEquals(123, target.getId());
    Assert.assertEquals("Donald Duck", target.getName());
    Assert.assertSame(context.getBean("myCoolOption"), target.getOption());
}