public void mapping_by_position() throws Exception {
ParquetFileFormat<WithFour> f1 = format(WithFour.class, "col1", "col3");
ParquetFileFormat<WithFour> f2 = format(WithFour.class, "col2", "col3");
f2.getFormatConfiguration().withFieldMappingStrategy(FieldMappingStrategy.POSITION);
WithFour in = new WithFour();
in.col0.modify(0);
in.col1.modify(1);
in.col2.modify(2);
in.col3.modify(3);
File file = save(f1, Arrays.asList(in));
List<WithFour> results = load(f2, file);
assertThat(results, hasSize(1));
WithFour out = results.get(0);
assertThat(out.col0, is(new IntOption(0)));
assertThat(out.col1, is(new IntOption(2)));
assertThat(out.col2, is(new IntOption()));
assertThat(out.col3, is(new IntOption()));
}