METHOD_0 ( ) { when ( delegate . resolve ( com . spotify . IDENT_0 . IDENT_1 . IDENT_2 ) ) . thenReturn ( IDENT_3 ) ; "<AssertPlaceHolder>" ; } resolve ( java . lang . String ) { com . google . common . base . IDENT_4 . METHOD_1 ( IDENT_5 , STRING_0 ) ; try { final java . util . List < com . spotify . IDENT_0 . IDENT_6 > nodes = delegate . resolve ( IDENT_5 ) ; if ( nodes . isEmpty ( ) ) { java . util . List < com . spotify . IDENT_0 . IDENT_6 > IDENT_7 = cache . METHOD_2 ( IDENT_5 ) ; return IDENT_7 != null ? IDENT_7 : nodes ; } cache . put ( IDENT_5 , nodes ) ; return nodes ; } catch ( java . lang . Exception e ) { if ( ( cache . METHOD_2 ( IDENT_5 ) ) != null ) { return cache . METHOD_2 ( IDENT_5 ) ; } throw com . google . common . base . IDENT_8 . METHOD_3 ( e ) ; } }
org . junit . Assert . assertThat ( resolver . resolve ( com . spotify . IDENT_0 . IDENT_1 . IDENT_2 ) , org . hamcrest . Matchers . equalTo ( IDENT_3 ) )