METHOD_0 ( ) { org . IDENT_0 . model . IDENT_1 IDENT_2 = mock ( org . IDENT_0 . model . IDENT_1 . class ) ; org . IDENT_0 . model . IDENT_3 content = mock ( org . IDENT_0 . model . IDENT_3 . class ) ; org . IDENT_0 . model . IDENT_4 IDENT_5 = mock ( org . IDENT_0 . model . IDENT_4 . class ) ; org . IDENT_0 . dto . api . v1 . IDENT_6 expected = this . IDENT_7 . METHOD_1 ( content , org . IDENT_0 . dto . api . v1 . IDENT_6 . class ) ; when ( IDENT_5 . list ( ) ) . thenReturn ( java . util . Arrays . asList ( IDENT_2 ) ) ; when ( IDENT_8 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; when ( cc . METHOD_3 ( eq ( STRING_0 ) ) ) . thenReturn ( content ) ; org . IDENT_0 . dto . api . v1 . IDENT_6 output = IDENT_9 . METHOD_0 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String ) { org . IDENT_0 . service . model . IDENT_10 IDENT_11 = this . adapter . METHOD_0 ( IDENT_12 ) ; if ( IDENT_11 == null ) { throw new org . IDENT_0 . common . exceptions . METHOD_4 ( ( STRING_1 + IDENT_12 ) ) ; } return IDENT_11 ; }
org . junit . Assert . assertEquals ( expected , output )