METHOD_0 ( ) { org . jboss . IDENT_0 . IDENT_1 IDENT_2 = new org . jboss . IDENT_0 . METHOD_1 ( ) { MOD_0 org . jboss . IDENT_0 . IDENT_3 [ ] IDENT_0 = new org . jboss . IDENT_0 . IDENT_3 [ ] { org . jboss . IDENT_0 . IDENT_3 . create ( "a" ) , org . jboss . IDENT_0 . IDENT_3 . create ( "b" ) } ; @ org . jboss . IDENT_0 . Override public java . util . Iterator < org . jboss . IDENT_0 . IDENT_3 > METHOD_2 ( org . jboss . IDENT_0 . IDENT_3 IDENT_4 , boolean IDENT_5 ) { return new java . util . Iterator < org . jboss . IDENT_0 . IDENT_3 > ( ) { MOD_0 int pos = 0 ; @ org . jboss . IDENT_0 . Override public boolean hasNext ( ) { return ( pos ) < ( IDENT_0 . length ) ; } @ org . jboss . IDENT_0 . Override public org . jboss . IDENT_0 . IDENT_3 next ( ) { return IDENT_0 [ ( ( pos ) ++ ) ] ; } @ org . jboss . IDENT_0 . Override public void remove ( ) { throw new java . lang . METHOD_3 ( ) ; } } ; } @ org . jboss . IDENT_0 . Override public org . jboss . IDENT_0 . IDENT_6 METHOD_4 ( java . lang . String name , org . jboss . IDENT_0 . IDENT_7 IDENT_8 ) throws org . jboss . IDENT_0 . IDENT_9 { for ( org . jboss . IDENT_0 . IDENT_3 m : IDENT_0 ) { if ( m . equals ( name ) ) { return org . jboss . IDENT_0 . IDENT_6 . build ( m ) . create ( ) ; } } return null ; } } ; org . jboss . IDENT_0 . IDENT_7 loader = new org . jboss . IDENT_0 . METHOD_5 ( new org . jboss . IDENT_0 . IDENT_10 [ ] { IDENT_2 } ) ; java . util . Iterator < org . jboss . IDENT_0 . IDENT_3 > it = loader . METHOD_2 ( ( ( org . jboss . IDENT_0 . IDENT_3 ) ( null ) ) , true ) ; int count = 0 ; while ( it . hasNext ( ) ) { it . next ( ) ; count ++ ; } "<AssertPlaceHolder>" ; } next ( ) { final long IDENT_11 = this . IDENT_11 ; if ( ! ( this . hasNext ( IDENT_11 ) ) ) { throw new java . util . METHOD_6 ( ) ; } this . IDENT_11 = this . next ( IDENT_11 ) ; }
org . junit . Assert . assertEquals ( 2 , count )