Assert.assertTrue( klass.equals( subj.getClass().getName() ) ); Assert.assertTrue( id.equals( subj.getId() ) );
Assert.assertTrue( "subj right class", klass.equals( subj.getClass().getName() ) ); Assert.assertTrue("id matches",  id.equals( subj.getId() ) );
  public void testSubjectInterfaceLookup() {    String id     = "blair";    String type   = Grouper.DEF_SUBJ_TYPE;    Subject subj  = GrouperSubject.load(id, type);    Assert.assertNotNull(subj);    String klass  = "edu.internet2.middleware.grouper.SubjectImpl";    Assert.assertTrue( klass.equals( subj.getClass().getName() ) );    Assert.assertTrue( id.equals( subj.getId() ) );    String name   = "Person";    Assert.assertNotNull( subj.getSubjectType() );    Assert.assertTrue( name.equals( subj.getSubjectType().getName() ) );    Assert.assertTrue( type.equals( subj.getSubjectType().getId() ) );  }