"testing",
HadoopDataSource.class,
"context",
attributes);
Configuration conf = new Configuration();
HadoopDataSourceProfile result = HadoopDataSourceProfile.convert(profile, conf);
assertThat(result.getId(), is("testing"));
assertThat(result.getContextPath(), is("context"));
assertThat(result.getFileSystem().getUri().getScheme(), is("file"));
assertThat(new File(result.getFileSystemPath().toUri()), is(prod));
assertThat(new File(result.getTemporaryFileSystemPath().toUri()), is(temp));
assertThat(result.getMinimumFragmentSize(new MockFormat(9999, -1)), is(123L));
assertThat(result.getMinimumFragmentSize(new MockFormat(100, -1)), is(100L));
assertThat(result.getMinimumFragmentSize(new MockFormat(-1, -1)), is(lessThan(0L)));
assertThat(result.getPreferredFragmentSize(new MockFormat(9999, -1)), is(1234L));
assertThat(result.getPreferredFragmentSize(new MockFormat(9999, 234)), is(234L));
assertThat(result.getPreferredFragmentSize(new MockFormat(-1, -1)), is(lessThan(0L)));
assertThat(result.isOutputStaging(), is(false));
assertThat(result.isOutputStreaming(), is(false));
assertThat(result.isCombineBlocks(), is(false));
assertThat(result.isSplitBlocks(), is(false));
assertThat(result.getKeepAliveInterval(), is(12345L));
}