conf);
assertEquals("Distributed Shell", params.getApplicationName());
assertEquals(86400L, params.getClientTimeoutMillis());
assertEquals("default", params.getQueue());
ContainerLaunchParameters clp = params.getApplicationMasterParameters(null);
assertEquals(1, clp.getPriority());
// clusterMax = 90 < 100
assertEquals(clusterMax, clp.getContainerResource(clusterMax));
Map<String, String> expEnv = ImmutableMap.of(
"zs", "10", "a", "b", "fiz", "faz", "foo", "foo", "biz", "baz");
Map<String, String> actEnv = clp.getEnvironment();
for (Map.Entry<String, String> e : expEnv.entrySet()) {
assertEquals(e.getValue(), actEnv.get(e.getKey()));
}
}