METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( any ( ) ) ) . thenReturn ( new com . amazonaws . services . IDENT_1 . model . METHOD_2 ( ) ) ; com . amazon . IDENT_2 . attributes . persistence . IDENT_3 adapter = com . amazon . IDENT_2 . attributes . persistence . impl . IDENT_4 . builder ( ) . METHOD_3 ( "foo" ) . METHOD_4 ( IDENT_0 ) . METHOD_5 ( IDENT_5 ) . build ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_5 , times ( 1 ) ) . apply ( IDENT_6 ) ; } METHOD_6 ( com . amazon . IDENT_2 . model . IDENT_7 ) { java . lang . String IDENT_8 = IDENT_9 . apply ( IDENT_10 ) ; com . amazonaws . services . IDENT_1 . model . IDENT_11 request = new com . amazonaws . services . IDENT_1 . model . METHOD_7 ( ) . METHOD_3 ( tableName ) . METHOD_8 ( java . util . Collections . METHOD_9 ( IDENT_12 , new com . amazonaws . services . IDENT_1 . model . METHOD_10 ( ) . METHOD_11 ( IDENT_8 ) ) ) . METHOD_12 ( true ) ; java . util . Map < java . lang . String , com . amazonaws . services . IDENT_1 . model . METHOD_10 > result = null ; try { result = IDENT_13 . METHOD_1 ( request ) . METHOD_1 ( ) ; } catch ( com . amazonaws . services . IDENT_1 . model . IDENT_14 e ) { throw new com . amazon . IDENT_2 . exception . METHOD_13 ( java . lang . String . format ( STRING_0 , tableName ) , e ) ; } catch ( com . amazonaws . services . IDENT_1 . model . IDENT_15 e ) { throw new com . amazon . IDENT_2 . exception . METHOD_13 ( STRING_1 , e ) ; } if ( ( result != null ) && ( result . containsKey ( IDENT_16 ) ) ) { java . util . Map < java . lang . String , java . lang . Object > attributes = com . amazonaws . services . IDENT_1 . document . IDENT_17 . METHOD_14 ( result . get ( IDENT_16 ) . METHOD_15 ( ) ) ; return java . util . Optional . of ( attributes ) ; } return java . util . Optional . empty ( ) ; }
org . junit . Assert . assertEquals ( adapter . METHOD_6 ( IDENT_6 ) , java . util . Optional . empty ( ) )