*/
public class TestServerOptionsProcessor {
@Test
public void test() {
ServerOptionsProcessor optProcessor = new ServerOptionsProcessor("HiveServer2");
final String key = "testkey";
final String value = "value123";
String []args = {"-hiveconf", key + "=" + value};
Assert.assertEquals(
"checking system property before processing options",
null,
System.getProperty(key));
optProcessor.parse(args);
Assert.assertEquals(
"checking system property after processing options",
value,
System.getProperty(key));