@Test
public void testFileRead() throws Exception {
VectorDoubleFileInputFormat inputFormat = new VectorDoubleFileInputFormat();
Path file = new Path("src/test/resources/vd_file_sample.txt");
InputSplit split = new FileSplit(file, 0, 1000, new String[]{"localhost"});
BSPJob job = new BSPJob();
RecordReader<VectorWritable, DoubleWritable> recordReader = inputFormat.getRecordReader(split, job);
assertNotNull(recordReader);
VectorWritable key = recordReader.createKey();
assertNotNull(key);