}
@Test
public void testCompare() {
DataJoinKey djKey1 = new DataJoinKey(Byte.valueOf("1"), new Text("1"));
DataJoinKey djKey1_1 = new DataJoinKey(Byte.valueOf("1"), new Text("1"));
DataJoinKey djKey2 = new DataJoinKey(Byte.valueOf("1"), new Text("2"));
Assert.assertEquals(-1, djKey1.compareTo(djKey2));
Assert.assertEquals(1, djKey2.compareTo(djKey1));
Assert.assertEquals(0, djKey1.compareTo(djKey1_1));
Assert.assertEquals(-1, djKey1.compare(djKey1, djKey2));
Assert.assertEquals(1, djKey1.compare(djKey2, djKey1));
Assert.assertEquals(0, djKey1.compare(djKey1, djKey1_1));
djKey1 = new DataJoinKey(Byte.valueOf("1"), new Text("1"), new Text("1"), null);
djKey1_1 = new DataJoinKey(Byte.valueOf("1"), new Text("1"), new Text("2"), null);
djKey2 = new DataJoinKey(Byte.valueOf("1"), new Text("2"), new Text("1"), null);
Assert.assertEquals(-1, djKey1.compareTo(djKey2));
Assert.assertEquals(1, djKey2.compareTo(djKey1));
Assert.assertEquals(0, djKey1.compareTo(djKey1_1));
Assert.assertEquals(0, djKey1_1.compareTo(djKey1));
Assert.assertEquals(-1, djKey1.compare(djKey1, djKey2));
Assert.assertEquals(1, djKey1.compare(djKey2, djKey1));
Assert.assertEquals(0, djKey1.compare(djKey1, djKey1_1));
Assert.assertEquals(0, djKey1.compare(djKey1_1, djKey1));
djKey1 = new DataJoinKey(Byte.valueOf("1"), new Text("1"), new Text("1"), NegativeComparator.class);
djKey1_1 = new DataJoinKey(Byte.valueOf("1"), new Text("1"), new Text("2"), NegativeComparator.class);
djKey2 = new DataJoinKey(Byte.valueOf("1"), new Text("2"), new Text("1"), NegativeComparator.class);
Assert.assertEquals(-1, djKey1.compareTo(djKey2));
Assert.assertEquals(1, djKey2.compareTo(djKey1));
Assert.assertEquals(0, djKey1.compareTo(djKey1_1));
Assert.assertEquals(0, djKey1_1.compareTo(djKey1));
Assert.assertEquals(-1, djKey1.compare(djKey1, djKey2));
Assert.assertEquals(1, djKey1.compare(djKey2, djKey1));