METHOD_0 ( ) { org . elasticsearch . action . get . IDENT_0 response = mock ( org . elasticsearch . action . get . IDENT_0 . class , Mockito . IDENT_1 ) ; when ( response . getType ( ) ) . thenReturn ( IDENT_2 . IDENT_3 . METHOD_1 ( ) ) ; when ( response . getId ( ) ) . thenReturn ( "1" ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_4 = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; IDENT_4 . put ( STRING_0 , STRING_1 ) ; when ( response . METHOD_2 ( ) . get ( STRING_2 ) ) . thenReturn ( IDENT_4 ) ; java . util . List < java . lang . Double > location = java . util . Arrays . asList ( new java . lang . Double [ ] { 2.0 , 1.0 } ) ; @ org . IDENT_5 . IDENT_6 . plugin . elasticsearch . model . entity . METHOD_3 ( STRING_3 ) java . util . Map < java . lang . String , java . lang . Object > IDENT_7 = mock ( java . util . Map . class ) ; when ( IDENT_7 . get ( STRING_4 ) ) . thenReturn ( location ) ; when ( response . METHOD_2 ( ) . get ( STRING_5 ) ) . thenReturn ( IDENT_7 ) ; org . IDENT_5 . IDENT_6 . plugin . elasticsearch . model . entity . IDENT_8 expected = IDENT_8 . Builder . create ( ) . id ( 1L ) . location ( 1.0 , 2.0 ) . METHOD_4 ( STRING_0 , STRING_1 ) . build ( ) ; org . IDENT_5 . IDENT_6 . plugin . elasticsearch . model . entity . IDENT_8 actual = IDENT_8 . Builder . METHOD_0 ( response ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( org . elasticsearch . action . get . IDENT_0 ) { if ( ! ( response . getType ( ) . equals ( IDENT_2 . IDENT_3 . METHOD_1 ( ) ) ) ) throw new java . lang . IllegalArgumentException ( STRING_6 ) ; org . IDENT_5 . IDENT_6 . plugin . elasticsearch . model . entity . IDENT_8 . Builder builder = new org . IDENT_5 . IDENT_6 . plugin . elasticsearch . model . entity . IDENT_8 . Builder ( ) ; builder . id = java . lang . Long . valueOf ( response . getId ( ) ) ; builder . IDENT_4 = ( ( java . util . Map < java . lang . String , java . lang . String > ) ( response . METHOD_2 ( ) . get ( STRING_2 ) ) ) ; java . util . Map < java . lang . String , java . lang . Object > IDENT_7 = ( ( java . util . Map < java . lang . String , java . lang . Object > ) ( response . METHOD_2 ( ) . get ( STRING_5 ) ) ) ; java . util . List < java . lang . Double > location = ( ( java . util . List < java . lang . Double > ) ( IDENT_7 . get ( STRING_4 ) ) ) ; builder . IDENT_9 = location . get ( 1 ) ; builder . IDENT_10 = location . get ( 0 ) ; return builder . build ( ) ; }
org . junit . Assert . assertEquals ( expected , actual )