public void testManualOptionsOverridesYarn() {
try {
String[] arguments = {"-m", "10.221.130.22:7788"};
CommandLine line = new PosixParser().parse(CliFrontend.getJobManagerAddressOption(new Options()), arguments, false);
TestingCliFrontend frontend = new TestingCliFrontend(CliFrontendTestUtils.getConfigDirWithYarnFile());
InetSocketAddress address = frontend.getJobManagerAddress(line);
assertNotNull(address);
assertEquals("10.221.130.22", address.getAddress().getHostAddress());
assertEquals(7788, address.getPort());
}