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