METHOD_0 ( ) { br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 IDENT_4 = mock ( br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 . class ) ; br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 IDENT_5 = mock ( br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 . class ) ; br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 [ ] IDENT_6 = new br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 [ ] { IDENT_4 , IDENT_5 } ; when ( api . METHOD_1 ( METHOD_2 ( ) , METHOD_3 ( hudson . plugins . IDENT_7 . Integer . class ) , METHOD_2 ( ) , METHOD_3 ( hudson . plugins . IDENT_7 . Integer . class ) , anyString ( ) , METHOD_4 ( ) , METHOD_3 ( hudson . plugins . IDENT_7 . Integer . class ) , METHOD_3 ( java . lang . String . class ) . toArray ( new java . lang . String [ 0 ] ) , any ( br . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_8 . IDENT_9 . class ) , METHOD_4 ( ) , any ( br . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_8 . IDENT_10 . class ) ) ) . thenReturn ( IDENT_6 ) ; br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 [ ] IDENT_11 = IDENT_12 . METHOD_5 ( null ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String [ ] ) { final br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 [ ] IDENT_11 = this . api . METHOD_1 ( METHOD_6 ( ) . getId ( ) , null , null , null , null , null , null , null , IDENT_9 . IDENT_13 , Boolean . IDENT_14 , IDENT_10 . IDENT_15 ) ; java . util . ArrayList < br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 > IDENT_16 = new java . util . ArrayList < br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 > ( ) ; for ( final br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 IDENT_17 : IDENT_11 ) { IDENT_17 . METHOD_7 ( METHOD_8 ( ) . getId ( ) ) ; IDENT_17 . METHOD_9 ( IDENT_18 . IDENT_19 ) ; if ( IDENT_20 != null ) { for ( java . lang . String IDENT_21 : IDENT_20 ) { final br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_22 IDENT_23 = this . api . METHOD_10 ( IDENT_17 . getId ( ) , null , IDENT_17 . METHOD_11 ( ) , IDENT_17 . METHOD_12 ( ) , IDENT_21 , IDENT_24 . IDENT_15 ) ; IDENT_17 . METHOD_13 ( ) . add ( IDENT_23 ) ; } } if ( ( ( platform ) == null ) || ( IDENT_17 . METHOD_14 ( ) . getName ( ) . equals ( platform . getName ( ) ) ) ) IDENT_16 . add ( IDENT_17 ) ; } return IDENT_16 . toArray ( new br . IDENT_0 . IDENT_1 . IDENT_2 . model . IDENT_3 [ IDENT_16 . size ( ) ] ) ; }
org . junit . Assert . assertThat ( IDENT_11 . length , org . hamcrest . Matchers . is ( 2 ) )