METHOD_0 ( ) { hudson . model . IDENT_0 build = mock ( hudson . model . IDENT_0 . class ) ; hudson . model . Node node = mock ( hudson . model . Node . class ) ; hudson . model . Node IDENT_1 = mock ( hudson . model . Node . class ) ; hudson . plugins . IDENT_2 . model . IDENT_3 configuration = new hudson . plugins . IDENT_2 . model . METHOD_1 ( STRING_0 , STRING_1 , STRING_2 , hudson . plugins . IDENT_2 . util . IDENT_4 . IDENT_5 , STRING_3 ) ; when ( build . METHOD_2 ( ) ) . thenReturn ( build ) . thenReturn ( null ) ; when ( build . METHOD_3 ( ) ) . thenReturn ( node , node , null ) ; when ( node . METHOD_4 ( ) ) . thenReturn ( STRING_4 , STRING_5 ) ; when ( IDENT_1 . METHOD_4 ( ) ) . thenReturn ( STRING_5 , STRING_5 ) ; when ( build . METHOD_5 ( hudson . plugins . IDENT_2 . model . METHOD_1 . class ) ) . thenReturn ( configuration ) ; "<AssertPlaceHolder>" ; verify ( build , times ( 2 ) ) . METHOD_3 ( ) ; verify ( node , times ( 2 ) ) . METHOD_4 ( ) ; verify ( build ) . METHOD_2 ( ) ; verify ( build ) . METHOD_5 ( hudson . plugins . IDENT_2 . model . METHOD_1 . class ) ; METHOD_6 ( node ) ; METHOD_6 ( build ) ; } METHOD_7 ( hudson . model . Node , hudson . model . IDENT_6 ) { if ( ( IDENT_7 == null ) || ( ! ( IDENT_7 instanceof hudson . model . IDENT_0 < ? , ? > ) ) ) { return null ; } hudson . model . IDENT_0 < ? , ? > build = ( ( hudson . model . IDENT_0 < ? , ? > ) ( IDENT_7 ) ) ; while ( build != null ) { hudson . model . Node node = build . METHOD_3 ( ) ; if ( node != null ) { if ( node . METHOD_4 ( ) . equals ( IDENT_1 . METHOD_4 ( ) ) ) { break ; } } build = build . METHOD_2 ( ) ; } if ( build != null ) { hudson . plugins . IDENT_2 . model . METHOD_1 configuration = build . METHOD_5 ( hudson . plugins . IDENT_2 . model . METHOD_1 . class ) ; if ( configuration != null ) { return new hudson . plugins . IDENT_2 . util . IDENT_8 . METHOD_8 ( configuration , build ) ; } } return null ; }
org . junit . Assert . assertThat ( new hudson . plugins . IDENT_2 . util . METHOD_9 ( ) . METHOD_7 ( IDENT_1 , build ) , org . hamcrest . CoreMatchers . equalTo ( configuration ) )