InterpolationLoader extends
      AbstractDelegatingTargetDescriptorLoader { public Target load(final String name, final Map<Object, Object> context) throws ADLException { final Target target = clientLoader.load(name, context); interpolate(target); return target; }  Target load(final String name, final Map<Object, Object> context);  }
@Test(groups = {"functional", "checkin"}) public void test1() throws Exception { final String prevValue = System.setProperty("TOOL_DIR", "foo"); final Target target = loader.load("descriptor3", context); if (prevValue != null) System.setProperty("TOOL_DIR", prevValue); assertNotNull(loader); assertEquals("descriptor3", target.getName()); final Compiler compiler = target.getCompiler(); assertNotNull(compiler); assertEquals("foo/gcc", compiler.getPath()); final Linker linker = target.getLinker(); assertNotNull(linker); assertEquals("foo/gcc", linker.getPath()); final Flag[] cFlags = target.getCFlags(); assertEquals(1, cFlags.length); assertNull(cFlags[0].getId()); assertEquals("-Ifoo/lib", cFlags[0].getValue()); }