METHOD_0 ( ) { org . apache . cxf . ws . policy . IDENT_0 interceptor = new org . apache . cxf . ws . policy . METHOD_1 ( ) ; message = control . METHOD_2 ( org . apache . cxf . message . Message . class ) ; java . lang . Exception ex = new java . lang . METHOD_3 ( new java . lang . RuntimeException ( ) ) ; IDENT_1 = control . METHOD_2 ( org . apache . cxf . service . model . IDENT_2 . class ) ; org . easymock . EasyMock . expect ( message . get ( org . apache . cxf . service . model . IDENT_3 . class ) ) . andReturn ( null ) ; org . apache . cxf . service . model . IDENT_3 IDENT_4 = control . METHOD_2 ( org . apache . cxf . service . model . IDENT_3 . class ) ; java . util . Collection < org . apache . cxf . service . model . IDENT_3 > IDENT_5 = org . apache . cxf . helpers . IDENT_6 . METHOD_4 ( Collections . IDENT_7 ) ; org . easymock . EasyMock . expect ( IDENT_1 . METHOD_5 ( ) ) . andReturn ( IDENT_5 ) ; org . apache . cxf . service . model . IDENT_2 IDENT_8 = control . METHOD_2 ( org . apache . cxf . service . model . IDENT_2 . class ) ; org . easymock . EasyMock . expect ( IDENT_1 . METHOD_6 ( ) ) . andReturn ( IDENT_8 ) . times ( 2 ) ; java . util . Collection < org . apache . cxf . service . model . IDENT_3 > IDENT_9 = org . apache . cxf . helpers . IDENT_6 . METHOD_4 ( java . util . Collections . singletonList ( IDENT_4 ) ) ; org . easymock . EasyMock . expect ( IDENT_8 . METHOD_5 ( ) ) . andReturn ( IDENT_9 ) ; org . apache . cxf . service . model . IDENT_10 IDENT_11 = control . METHOD_2 ( org . apache . cxf . service . model . IDENT_10 . class ) ; org . easymock . EasyMock . expect ( IDENT_4 . METHOD_7 ( ) ) . andReturn ( IDENT_11 ) ; org . easymock . EasyMock . expect ( IDENT_11 . getProperty ( java . lang . Class . class . getName ( ) , java . lang . Class . class ) ) . andReturn ( org . apache . cxf . ws . policy . RuntimeException . class ) ; message . put ( org . apache . cxf . service . model . IDENT_3 . class , IDENT_4 ) ; org . easymock . EasyMock . METHOD_8 ( ) ; control . replay ( ) ; "<AssertPlaceHolder>" ; control . verify ( ) ; } METHOD_9 ( org . apache . cxf . message . Message , java . lang . Exception , org . apache . cxf . service . model . IDENT_2 ) { org . apache . cxf . service . model . IDENT_3 IDENT_4 = msg . get ( org . apache . cxf . service . model . IDENT_3 . class ) ; if ( ( null == IDENT_4 ) && ( ex != null ) ) { java . lang . Throwable IDENT_12 = ex . METHOD_10 ( ) ; if ( null == IDENT_12 ) { return null ; } for ( org . apache . cxf . service . model . IDENT_3 b : IDENT_1 . METHOD_5 ( ) ) { java . lang . Class < ? > IDENT_13 = b . METHOD_7 ( ) . getProperty ( java . lang . Class . class . getName ( ) , java . lang . Class . class ) ; if ( ( IDENT_13 != null ) && ( IDENT_13 . METHOD_11 ( IDENT_12 . getClass ( ) ) ) ) { IDENT_4 = b ; msg . put ( org . apache . cxf . service . model . IDENT_3 . class , IDENT_4 ) ; break ; } } if ( ( null == IDENT_4 ) && ( null != ( IDENT_1 . METHOD_6 ( ) ) ) ) { for ( org . apache . cxf . service . model . IDENT_3 b : IDENT_1 . METHOD_6 ( ) . METHOD_5 ( ) ) { java . lang . Class < ? > IDENT_13 = b . METHOD_7 ( ) . getProperty ( java . lang . Class . class . getName ( ) , java . lang . Class . class ) ; if ( ( IDENT_13 != null ) && ( IDENT_13 . METHOD_11 ( IDENT_12 . getClass ( ) ) ) ) { IDENT_4 = b ; msg . put ( org . apache . cxf . service . model . IDENT_3 . class , IDENT_4 ) ; break ; } } } } return IDENT_4 ; }
org . junit . Assert . assertSame ( IDENT_4 , interceptor . METHOD_9 ( message , ex , IDENT_1 ) )