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