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