public void testProperty() throws Exception {
System.setProperty("test", "testValue");
PropertiesComponent pc = new PropertiesComponent();
CamelContext context = new DefaultCamelContext();
pc.setCamelContext(context);
context.addComponent("properties", pc);
// try to setup the property
Exchange exchange = new DefaultExchange(context);
String result = SimpleBuilder.simple("${properties:test}").evaluate(exchange, String.class);
Assert.assertEquals("testValue", result);