METHOD_0 ( ) { org . IDENT_0 . core . impl . IDENT_1 . IDENT_2 resource = new org . IDENT_0 . core . impl . IDENT_1 . METHOD_1 ( ) ; IDENT_3 . METHOD_2 ( resource , new javax . ws . rs . core . METHOD_3 ( ) ) ; org . IDENT_0 . core . IDENT_4 < org . IDENT_0 . core . resource . IDENT_5 > IDENT_6 = IDENT_3 . METHOD_4 ( STRING_0 , newArrayList ( ) ) ; "<AssertPlaceHolder>" ; } getInstance ( org . IDENT_0 . core . IDENT_7 ) { try { java . lang . Object object = IDENT_8 . get ( IDENT_9 ) ; if ( object != null ) { org . IDENT_0 . core . provider . IDENT_10 IDENT_11 = new org . IDENT_0 . core . impl . provider . METHOD_5 ( object ) ; java . util . List < org . IDENT_0 . core . IDENT_12 > IDENT_13 = model . METHOD_6 ( ) ; if ( ( IDENT_13 != null ) && ( ( IDENT_13 . size ( ) ) > 0 ) ) { IDENT_13 . stream ( ) . filter ( ( IDENT_14 ) -> ( IDENT_14 . METHOD_7 ( ) ) != null ) . METHOD_8 ( ( IDENT_14 ) -> IDENT_14 . METHOD_9 ( object , context ) ) ; } return new org . IDENT_0 . core . METHOD_10 ( IDENT_11 , object ) . getInstance ( context ) ; } else { org . IDENT_0 . core . provider . IDENT_10 IDENT_11 = new org . IDENT_0 . core . impl . provider . METHOD_5 ( IDENT_8 . getType ( ) ) ; return new org . IDENT_0 . core . METHOD_11 ( IDENT_11 ) . getInstance ( context ) ; } } catch ( java . lang . IllegalArgumentException e ) { org . IDENT_0 . IDENT_15 . IDENT_16 . LOG . error ( e . METHOD_12 ( ) , e ) ; throw new java . lang . RuntimeException ( e . METHOD_12 ( ) , e ) ; } catch ( java . lang . IDENT_17 e ) { org . IDENT_0 . IDENT_15 . IDENT_16 . LOG . error ( e . METHOD_12 ( ) , e ) ; throw new java . lang . RuntimeException ( e . METHOD_12 ( ) , e ) ; } }
org . junit . Assert . assertSame ( resource , IDENT_6 . getInstance ( mock ( org . IDENT_0 . core . IDENT_7 . class ) ) )