@Test
 public void testInitContextInPropertiesByClassPath() throws Exception {
   loader.init();
   ApplicationContext context = loader.getContext("test_context");
   assertNotNull(context.getBean("testSerializer"));
   assertNotNull(context.getBean("testDeserializer"));
 }
 @Before
 public void buildContextLoader() {
   loader = new ContextLoader();
   loader.setApplicationContext(
       new ClassPathXmlApplicationContext("/org/red5/server/parent_context_loader_test.xml"));
   loader.setParentContext(
       new ClassPathXmlApplicationContext("/org/red5/server/parent_context_loader_test.xml"));
   loader.setContextsConfig("classpath:/org/red5/server/classpath_context_loader_test.properties");
 }
  @Test
  public void testSystemPropertiesReplacePlacementHoldersInContextXml() throws Exception {
    System.setProperty("red5.root", "/org/red5/server");
    System.setProperty("red5.config_root", "/context_loader_test.xml");
    loader.setContextsConfig("classpath:/org/red5/server/sysprop_context_loader_test.properties");
    loader.init();

    ApplicationContext context = loader.getContext("test_context");

    assertNotNull(context.getBean("testSerializer"));
    assertNotNull(context.getBean("testDeserializer"));
  }