JobRequest implements Serializable { public void addJars(Set<String> jars) { for (String j : jars) { addJar(j); } } JobRequest(); MSubmission getJobSubmission(); void setJobSubmission(MSubmission submission); String getJobName(); void setJobName(String jobName); long getJobId(); void setJobId(long jobId); SqoopConnector getConnector(Direction type); void setConnector(Direction type, SqoopConnector connector); Set<String> getJars(); void addJar(String jar); void addJarForClass(Class<?> klass); void addJars(Set<String> jars); Transferable getFrom(); void setFrom(Transferable from); Transferable getTo(); void setTo(Transferable to); Object getConnectorLinkConfig(Direction type); void setConnectorLinkConfig(Direction type, Object config); Object getJobConfig(Direction type); void setJobConfig(Direction type, Object config); Object getDriverConfig(); void setDriverConfig(Object config); MutableMapContext getConnectorContext(Direction type); MutableMapContext getDriverContext(); String getNotificationUrl(); void setNotificationUrl(String url); Integer getExtractors(); void setExtractors(Integer extractors); Integer getLoaders(); void setLoaders(Integer loaders); Class<? extends IntermediateDataFormat<?>> getIntermediateDataFormat(Direction direction); void setIntermediateDataFormat(
      Class<? extends IntermediateDataFormat<? extends Object>> intermediateDataFormat,
      Direction direction); void addData(IntermediateDataFormat<?> idf); List<IntermediateDataFormat<?>> getData(); Map<String, String> getConf();  }
@Test public void testAddJars() { Set<String> set = new HashSet<String>(); set.addAll(Arrays.asList("A", "B")); jobRequest.addJars(set); set = new HashSet<String>(); set.addAll(Arrays.asList("B", "C")); jobRequest.addJars(set); assertEquals(3, jobRequest.getJars().size()); assertTrue(jobRequest.getJars().contains("A")); assertTrue(jobRequest.getJars().contains("A")); assertTrue(jobRequest.getJars().contains("C")); }