OrbConfiguration orbConf = new OrbConfiguration();
orbConf.set("fs.default.name", "hdfs://localhost:" + cluster.getNameNodePort());
orbConf.setJobNumber("0");
orbConf.setFileOutputPath("test");
CheckPointDataInput checkpointInput = new CheckPointDataInput(orbConf, superStep, partition);
// Data is read on a FIFO basis
IntWritable intInput = new IntWritable();
intInput.readFields(checkpointInput);
LongWritable longInput = new LongWritable();
longInput.readFields(checkpointInput);
Text textInput = new Text();
textInput.readFields(checkpointInput);
FloatWritable floatInput = new FloatWritable();
floatInput.readFields(checkpointInput);
checkpointInput.close();
assertThat(checkpointInput, notNullValue());
assertEquals(intInput.get(), 4);
assertEquals(longInput.get(), 9223372036854775807L);
assertEquals(textInput.toString(), "test");