METHOD_0 ( ) { final org . eclipse . IDENT_0 . cache . IDENT_1 < java . lang . String > value = mock ( org . eclipse . IDENT_0 . cache . IDENT_1 . class ) ; when ( value . METHOD_1 ( ) ) . thenReturn ( Boolean . IDENT_2 ) ; when ( value . getValue ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_3 . get ( STRING_1 , org . eclipse . IDENT_0 . cache . IDENT_1 . class ) ) . thenReturn ( value ) ; final java . lang . String result = cache . get ( STRING_1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_3 , METHOD_2 ( ) ) . METHOD_3 ( STRING_1 ) ; } get ( IDENT_4 ) { if ( key == null ) { return null ; } else { @ org . eclipse . IDENT_0 . service . cache . METHOD_4 ( STRING_2 ) final org . eclipse . IDENT_0 . cache . IDENT_1 < IDENT_5 > value = cache . get ( key , org . eclipse . IDENT_0 . cache . IDENT_1 . class ) ; if ( value == null ) { org . eclipse . IDENT_0 . service . cache . IDENT_6 . LOG . trace ( STRING_3 , key ) ; return null ; } else if ( value . METHOD_1 ( ) ) { org . eclipse . IDENT_0 . service . cache . IDENT_6 . LOG . trace ( STRING_4 , key ) ; cache . METHOD_3 ( key ) ; return null ; } else { org . eclipse . IDENT_0 . service . cache . IDENT_6 . LOG . trace ( STRING_5 , key ) ; return value . getValue ( ) ; } } }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( STRING_0 ) )