public void testSerialization() throws Exception {
    Association assoc2 = (Association) TestTools.serialize(this.assoc);

    assertEquals(this.assoc, assoc2);
    assertNotSame(this.assoc, assoc2);
    assertEquals(this.assoc.getKey(), assoc2.getKey());
    assertNotSame(this.assoc.getKey(), assoc2.getKey());
    assertEquals(this.assoc.getValue(), assoc2.getValue());
    assertNotSame(this.assoc.getValue(), assoc2.getValue());
  }
 private void verifyClone(Association expected, Association actual) {
   assertEquals(expected, actual);
   assertNotSame(expected, actual);
   assertEquals(expected.getKey(), actual.getKey());
   assertSame(expected.getKey(), actual.getKey());
   assertEquals(expected.getValue(), actual.getValue());
   assertSame(expected.getValue(), actual.getValue());
 }