### Question:
ValidatorConfiguration { public List<Param> getHiveParams() { return hiveParams == null ? Collections.<Param>emptyList() : hiveParams; } ValidatorConfiguration(@Nonnull final String[] args); String getFeedTableName(); String getFieldPolicyJsonPath(); List<Param> getHiveParams(); String getInvalidTableName(); Integer getNumPartitions(); String getPartition(); String getProfileTableName(); String getStorageLevel(); String getTargetDatabase(); String getValidTableName();  }### Answer:
@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()); }
@Test public void testParseRemainingParameters_missingParameters() { String[] args = {}; ValidatorConfiguration params = new ValidatorConfiguration(new String[]{"targetDatabase", "entity", "partition", "path-to-policy-file"}); new JCommander(params).parse(args); List<Param> hiveParams = params.getHiveParams(); assertTrue(hiveParams.isEmpty()); }