public final void testEqualsObject() {
Pair<Object, Object> p = new Pair<Object, Object>(null, null);
Pair<Object, Object> p1 = new Pair<Object, Object>(null, null);
assertEquals(p, p1);
p = new Pair<Object, Object>(null, new DoubleValue(D_0_1));
p1 = new Pair<Object, Object>(null, new DoubleValue(D_0_1));
assertEquals(p, p1);
p = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
p1 = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
assertEquals(p, p1);
p = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
p1 = new Pair<Object, Object>(null, new DoubleValue(D_0_1));
assertFalse(p.equals(p1));
p = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
p1 = new Pair<Object, Object>(new DoubleValue(D_0_1),
new DoubleValue(D_0_1));
assertFalse(p.equals(p1));
p = new Pair<Object, Object>(new DoubleValue(D_0_1),
new DoubleValue(D_2_1));
p1 = new Pair<Object, Object>(new DoubleValue(D_0_1),
new DoubleValue(D_0_1));
assertFalse(p.equals(p1));
//Test (first == null)
p = new Pair<Object, Object>(null, new DoubleValue(D_0_1));
p1 = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
assertFalse(p.equals(p1));
//Test (obj == null)
p = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
p1 = null;
assertFalse(p.equals(p1));
p = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
HiddenNeuron n = new HiddenNeuron();
assertFalse(p.equals(n));
p = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
p1 = new Pair<Object, Object>(new DoubleValue(D_0_1), null);
assertEquals(p, p1);
assertEquals(p, p);
}