logger.log(Level.FINE,"test case 1: "
+ "normal equals, hashCode, toString method calls");
logger.log(Level.FINE,"");
// construct two instances of BasicObjectEndpoint
BasicObjectEndpoint boe1 = new BasicObjectEndpoint(ep1,uuid1,false);
BasicObjectEndpoint boe2 = new BasicObjectEndpoint(ep1,uuid1,false);
// verify BasicObjectEndpoint equals, hashCode, and toString methods
assertion(! boe1.equals(null));
assertion(boe1.equals(boe2));
assertion(boe2.equals(boe1));
assertion(boe1.equals(boe1));
assertion(boe2.equals(boe2));
assertion(boe1.hashCode() == boe2.hashCode());
assertion(boe1.toString() != null);
assertion(boe2.toString() != null);
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case 2: "
+ "equals is false when contained Endpoints are different");
logger.log(Level.FINE,"");
boe2 = new BasicObjectEndpoint(ep2,uuid1,false);
assertion(! boe1.equals(boe2));
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case 3: "
+ "equals is false when contained Uuids are different");
logger.log(Level.FINE,"");
boe2 = new BasicObjectEndpoint(ep1,uuid2,false);
assertion(! boe1.equals(boe2));
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case 4: "
+ "equals is false when contained enableDGC are different");
logger.log(Level.FINE,"");
boe2 = new BasicObjectEndpoint(ep1,uuid1,true);
assertion(! boe1.equals(boe2));
logger.log(Level.FINE,"=================================");
logger.log(Level.FINE,"test case 5: "
+ "equals is false with different ObjectEndpoint impl");