LuaContainerLaunchParameters implements ContainerLaunchParameters { @Override public Map<String, String> getEnvironment() { Map<String, String> env = Maps.newHashMap(extras.getEnv()); if (!lv.isNil(LuaFields.ENV)) { env.putAll(lv.getTable(LuaFields.ENV).asMap()); } return env; } LuaContainerLaunchParameters(LuaValue lv, Configuration conf, Map<String, URI> localFileUris);  LuaContainerLaunchParameters(LuaWrapper lv, Configuration conf, Map<String, URI> localFileUris);  LuaContainerLaunchParameters(LuaWrapper lv, Configuration conf,
      Map<String, URI> localFileUris, Extras extras); int getCores(); int getMemory(); @Override Resource getContainerResource(Resource clusterMax); @Override int getPriority(); @Override int getNumInstances(); @Override Map<String, LocalResource> getLocalResources(); @Override Map<String, String> getEnvironment(); @Override List<String> getCommands(); String toCommand(LuaWrapper table);  }
@Test public void testEnvironment() { LuaWrapper e = env.createTable(LuaFields.ENV); e.setString("CLASSPATH", "./*.jar"); e.setString("USER", "bob"); assertEquals(ImmutableMap.of("CLASSPATH", "./*.jar", "USER", "bob"), lclp.getEnvironment()); }