public void testGetPublicKey() throws Exception {
  Identity i=new IdentityStub("testGetPublicKey");
  assertNull(i.getPublicKey());
  PublicKey pk=new PublicKeyStub("kkk","Identity.testGetPublicKey",null);
  i.setPublicKey(pk);
  assertSame(pk,i.getPublicKey());
}

public void testGetPublicKey ( ) throws Exception { Identity i = new IdentityStub ( "testGetPublicKey" ) ; assertNull ( i . getPublicKey ( ) ) ; PublicKey pk = new PublicKeyStub ( "kkk" , "Identity.testGetPublicKey" , null ) ; i . setPublicKey ( pk ) ; assertSame ( pk , i . getPublicKey ( ) ) ; }
verify identity . getpublickey ( ) returns public key
