public void testSignerStringIdentityScope() throws Exception {
  Signer s=new SignerStub("sss4",IdentityScope.getSystemScope());
  assertNotNull(s);
  assertEquals("sss4",s.getName());
  assertSame(IdentityScope.getSystemScope(),s.getScope());
  assertNull(s.getPrivateKey());
  try {
    Signer s2=new SignerStub("sss4",IdentityScope.getSystemScope());
    fail("expected KeyManagementException not thrown");
  }
 catch (  KeyManagementException e) {
  }
  Signer s2=new SignerStub(null);
  assertNull(s2.getName());
}

public void testSignerStringIdentityScope ( ) throws Exception { Signer s = new SignerStub ( "sss4" , IdentityScope . getSystemScope ( ) ) ; assertNotNull ( s ) ; assertEquals ( "sss4" , s . getName ( ) ) ; assertSame ( IdentityScope . getSystemScope ( ) , s . getScope ( ) ) ; assertNull ( s . getPrivateKey ( ) ) ; try { Signer s2 = new SignerStub ( "sss4" , IdentityScope . getSystemScope ( ) ) ; fail ( "expected KeyManagementException not thrown" ) ; } catch ( KeyManagementException e ) { } Signer s2 = new SignerStub ( null ) ; assertNull ( s2 . getName ( ) ) ; }
verify signer ( string , identityscope ) creates instance
