@Test
public void int_values() throws Exception {
CsvParser parser = create("0,1,50,-1,-50,"
+ Integer.MAX_VALUE + ","
+ Integer.MIN_VALUE + ", 0,0 ,");
IntOption option = new IntOption();
assertThat(parser.next(), is(true));
parser.fill(option);
assertThat(option.get(), is(0));
parser.fill(option);
assertThat(option.get(), is(1));
parser.fill(option);
assertThat(option.get(), is(50));
parser.fill(option);
assertThat(option.get(), is(-1));
parser.fill(option);
assertThat(option.get(), is(-50));
parser.fill(option);
assertThat(option.get(), is(Integer.MAX_VALUE));
parser.fill(option);
assertThat(option.get(), is(Integer.MIN_VALUE));
parser.fill(option);
assertThat(option.get(), is(0));
parser.fill(option);
assertThat(option.get(), is(0));
parser.fill(option);
assertThat(option.isNull(), is(true));
parser.endRecord();
assertThat(parser.next(), is(false));
}