@Test
public void testParseRemainingParameters() {

    String[] args = {"-h", "hive.setting.1=value.1", "--hiveConf", "hive.setting.2=value.2"};
    ValidatorConfiguration params = new ValidatorConfiguration(new String[]{"targetDatabase", "entity", "partition", "path-to-policy-file"});
    new JCommander(params).parse(args);
    List<Param> hiveParams = params.getHiveParams();
    Param first = hiveParams.get(0);
    assertEquals("hive.setting.1", first.getName());
    assertEquals("value.1", first.getValue());
    Param second = hiveParams.get(1);
    assertEquals("hive.setting.2", second.getName());
    assertEquals("value.2", second.getValue());
}