METHOD_0 ( ) { hudson . model . IDENT_0 build = mock ( hudson . model . IDENT_0 . class ) ; hudson . model . Node node = mock ( hudson . model . Node . class ) ; when ( build . METHOD_1 ( ) ) . thenReturn ( build ) ; when ( build . METHOD_2 ( ) ) . thenReturn ( node ) ; when ( node . METHOD_3 ( ) ) . thenReturn ( STRING_0 ) ; when ( build . METHOD_4 ( hudson . plugins . IDENT_1 . model . IDENT_2 . class ) ) . thenReturn ( new hudson . plugins . IDENT_1 . model . METHOD_5 ( STRING_1 , STRING_2 , STRING_3 , hudson . plugins . IDENT_1 . util . IDENT_3 . IDENT_4 , STRING_4 ) ) ; hudson . plugins . IDENT_1 . util . IDENT_5 . IDENT_6 configuration = new hudson . plugins . IDENT_1 . util . METHOD_6 ( ) . METHOD_7 ( node , build ) ; "<AssertPlaceHolder>" ; configuration . save ( ) ; verify ( build ) . save ( ) ; } METHOD_8 ( ) { return IDENT_7 ; }
org . junit . Assert . assertThat ( configuration . METHOD_8 ( ) , org . hamcrest . CoreMatchers . is ( STRING_2 ) )