public class ConfigurationTest
{
@Test
public void testConfigurationParser()
{
OpenWebBeansConfiguration cfg = WebBeansContext.getInstance().getOpenWebBeansConfiguration();
// not overloaded
String ts = cfg.getProperty("org.apache.webbeans.spi.TransactionService");
Assert.assertNotNull(ts);
Assert.assertEquals("org.apache.webbeans.corespi.ee.TransactionServiceJndiImpl", ts);
// overloaded version 1
String wbf = cfg.getProperty("org.apache.webbeans.spi.JNDIService");
Assert.assertNotNull(wbf);
Assert.assertEquals("org.apache.webbeans.corespi.ee.JNDIServiceEnterpriseImpl", wbf);
// property which is only in the specialised openwebbeans.properties
String testProperty = cfg.getProperty("test.property");
Assert.assertNotNull(testProperty);
Assert.assertEquals("true", testProperty);
}