HdfsUtils { public static boolean hasCustomFormat(LinkConfiguration linkConfiguration, FromJobConfiguration fromJobConfiguration) { return Boolean.TRUE.equals(fromJobConfiguration.fromJobConfig.overrideNullValue); }  static Configuration createConfiguration(LinkConfiguration linkConfig); static void configurationToContext(Configuration configuration, MutableContext context); static void contextToConfiguration(ImmutableContext context, Configuration configuration); static Configuration configureURI(Configuration conf, LinkConfiguration linkConfiguration); static boolean hasCustomFormat(LinkConfiguration linkConfiguration, FromJobConfiguration fromJobConfiguration); static boolean hasCustomFormat(LinkConfiguration linkConfiguration, ToJobConfiguration toJobConfiguration); static Object[] formatRecord(LinkConfiguration linkConfiguration,
                                      FromJobConfiguration fromJobConfiguration,
                                      Object[] record); static Object[] formatRecord(LinkConfiguration linkConfiguration,
                                    ToJobConfiguration toJobConfiguration,
                                    Object[] record); static final String DEFAULT_HADOOP_CONF_DIR; }
@Test public void testIsModifiable() throws Exception { LinkConfiguration linkConfiguration = new LinkConfiguration(); FromJobConfiguration fromJobConfiguration = new FromJobConfiguration(); ToJobConfiguration toJobConfiguration = new ToJobConfiguration(); assertFalse(HdfsUtils.hasCustomFormat(linkConfiguration, fromJobConfiguration)); assertFalse(HdfsUtils.hasCustomFormat(linkConfiguration, toJobConfiguration)); fromJobConfiguration.fromJobConfig.nullValue = "\0"; toJobConfiguration.toJobConfig.nullValue = "\0"; assertFalse(HdfsUtils.hasCustomFormat(linkConfiguration, fromJobConfiguration)); assertFalse(HdfsUtils.hasCustomFormat(linkConfiguration, toJobConfiguration)); fromJobConfiguration.fromJobConfig.overrideNullValue = true; toJobConfiguration.toJobConfig.overrideNullValue = true; assertTrue(HdfsUtils.hasCustomFormat(linkConfiguration, fromJobConfiguration)); assertTrue(HdfsUtils.hasCustomFormat(linkConfiguration, toJobConfiguration)); }