title: Camel Properties file load from Junit Integration Test
body: <p>I have a Camel Route which uses CDI to load a properties file from the JBoss configuration directory ...<strong><em>works perfect</em></strong>.</p>
  
  <p>What I need to do is load one of the properties that are loaded in 
  an Arquillian integration test I am writing.  </p>
  
  <p>Example:</p>
  
  <p>Content of Fiddler.properties file in the JBoss configuration   directory</p>
  
  <p>silly.value     =   Laughing<br>
  serious.value   =   politics</p>
  
  <p>Example Producer class to load properties</p>
  
  <pre><code>     /**  
        * Create the Camel properties component using CDI @Produces  
        */  
          @Produces  
          @Named("properties")  
          PropertiesComponent propertiesComponent() {  
              final PropertiesComponent component = new PropertiesComponent();
  
              // load JBoss properties file  
              component.setLocation(  
               "file:${jboss.server.config.dir}/fiddler.properties"
              );
              return component;
          }
  </code></pre>
  
  <p>A given property from the Fiddler.properties file is now available  in the main Camel route as <strong>{{silly.value}}</strong> or <strong>{{serious.value}}</strong></p>
  
  <p><strong>Problem:</strong></p>
  
  <p>What I would like to do is load/reference one of these property values from my Arquillian Integration Test … probably in the @BeforeClass method …something like below:</p>
  
  <pre><code>@RunWith(Arquillian.class)
  public class MainRouteIT {
  
  .
  .
  Boolean allOK = false;
  
  @BeforeClass
  public static void setupTest() throws Exception {
      allOK = new testCheck(
                          {{silly.value}}, {{serious.value}}
                        );
   .
   .
  </code></pre>
  
  <p>Any idea if something like this is possible in Camel within an Arquillian test ?</p>