public void testIdentityStringIdentityScope() throws Exception {
  IdentityScope s=IdentityScope.getSystemScope();
  Identity i=new IdentityStub("iii2",s);
  assertNotNull(i);
  assertEquals("iii2",i.getName());
  assertSame(s,i.getScope());
  assertSame(i,s.getIdentity(i.getName()));
}

public void testIdentityStringIdentityScope ( ) throws Exception { IdentityScope s = IdentityScope . getSystemScope ( ) ; Identity i = new IdentityStub ( "iii2" , s ) ; assertNotNull ( i ) ; assertEquals ( "iii2" , i . getName ( ) ) ; assertSame ( s , i . getScope ( ) ) ; assertSame ( i , s . getIdentity ( i . getName ( ) ) ) ; }
verify identity ( string , identityscope ) creates instance with given name and in give scope
