METHOD_0 ( ) { final java . util . List < net . ripe . db . whois . common . domain . IDENT_0 > events = java . util . Arrays . asList ( net . ripe . db . whois . common . domain . IDENT_1 . METHOD_1 ( 1 , IDENT_0 . Type . IDENT_2 ) , net . ripe . db . whois . common . domain . IDENT_1 . METHOD_1 ( 2 , IDENT_0 . Type . IDENT_2 ) , net . ripe . db . whois . common . domain . IDENT_1 . METHOD_1 ( 3 , IDENT_0 . Type . IDENT_2 ) , net . ripe . db . whois . common . domain . IDENT_1 . METHOD_1 ( 4 , IDENT_0 . Type . IDENT_3 ) , net . ripe . db . whois . common . domain . IDENT_1 . METHOD_1 ( 5 , IDENT_0 . Type . IDENT_2 ) ) ; final net . ripe . db . whois . common . domain . IDENT_4 IDENT_5 = new net . ripe . db . whois . common . domain . METHOD_2 ( IDENT_6 , events ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { int IDENT_7 = 0 ; for ( final net . ripe . db . whois . common . domain . IDENT_0 IDENT_8 : IDENT_5 ) { switch ( IDENT_8 . getType ( ) ) { case IDENT_2 : IDENT_7 ++ ; break ; case IDENT_3 : case IDENT_9 : return IDENT_7 ; default : throw new java . lang . IllegalStateException ( ( STRING_0 + ( IDENT_8 . getType ( ) ) ) ) ; } } return IDENT_7 ; }
org . junit . Assert . assertThat ( IDENT_5 . METHOD_3 ( ) , org . hamcrest . Matchers . is ( 1 ) )