### Question:
ValidatorConfiguration { public Integer getNumPartitions() { return numPartitions; } 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 testParseRemainingParametersNumPartitions() { String[] args = {"--storageLevel", "MEMORY_ONLY", "--numPartitions", "10"}; ValidatorConfiguration params = new ValidatorConfiguration(new String[]{"targetDatabase", "entity", "partition", "path-to-policy-file"}); new JCommander(params).parse(args); Integer numRDDPartitions = params.getNumPartitions(); assertEquals("10", String.valueOf(numRDDPartitions)); }
@Test public void testDefaultNumPartitions() { String[] args = {}; ValidatorConfiguration params = new ValidatorConfiguration(new String[]{"targetDatabase", "entity", "partition", "path-to-policy-file"}); new JCommander(params).parse(args); Integer defaultRDDPartitions = params.getNumPartitions(); assertEquals("-1", String.valueOf(defaultRDDPartitions)); }