return student;
}
@Test
public void testMergeByCustomObjectKeyWithSequenceFileInputFormat() throws Exception {
Student student1 = setStudent(new Text("Sam"),new Text("US"),new IntWritable(1),
new LongWritable(9999999998l),new DoubleWritable(99.12));
Student student2 = setStudent(new Text("John"),new Text("AUS"),new IntWritable(2),
new LongWritable(9999999999l),new DoubleWritable(90.12));
Student student3 = setStudent(new Text("Mary"),new Text("UK"),new IntWritable(3),
new LongWritable(9999999988l),new DoubleWritable(69.12));
Student student4 = setStudent(new Text("Kelvin"),new Text("UK"),new IntWritable(4),
new LongWritable(9999998888l),new DoubleWritable(59.12));
HashMap<Student, Text> inputData1 = new HashMap<Student, Text>();
inputData1.put(student1, new Text("Macon Kent,6269 Aenean St.,1-247-399-1051,08253"));
inputData1.put(student2, new Text("Dale Zamora,521-7792 Mauris Rd.,1-214-625-6970,90510"));
inputData1.put(student3, new Text("Charles Wood,525-9709 In Rd.,1-370-528-4758,62714"));
createSequenceFileInHdfs(inputData1, "/input1", "testFile1.seq");
HashMap<Student, Text> inputData2 = new HashMap<Student, Text>();
inputData2.put(student2, new Text("Austin Farley,4794 Donec Ave,1-230-823-8164,13508"));
inputData2.put(student3, new Text("Macaulay Jackson,5435 Dui. Avenue,1-770-395-6446,31584"));
inputData2.put(student4, new Text("Timon Leonard,716 Ac Ave,1-857-935-3882,62240"));
createSequenceFileInHdfs(inputData2, "/input2", "testFile2.seq");
String[] args = new String[] {
"-newPath", "/input1",