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 . util . List < java . util . List < java . lang . Double > > > IDENT_5 = new java . util . ArrayList < java . util . List < java . util . List < java . lang . Double > > > ( ) ; java . util . ArrayList < java . util . List < java . lang . Double > > IDENT_6 = new java . util . ArrayList < java . util . List < java . lang . Double > > ( ) ; IDENT_6 . add ( java . util . Arrays . asList ( new java . lang . Double [ ] { 2.0 , 1.0 } ) ) ; IDENT_6 . add ( java . util . Arrays . asList ( new java . lang . Double [ ] { FLOAT_0 , 2.0 } ) ) ; IDENT_5 . add ( IDENT_6 ) ; @ org . IDENT_7 . IDENT_8 . plugin . elasticsearch . model . entity . METHOD_3 ( STRING_3 ) java . util . Map < java . lang . String , java . lang . Object > IDENT_9 = mock ( java . util . Map . class ) ; when ( IDENT_9 . get ( STRING_4 ) ) . thenReturn ( STRING_1 1 ) ; when ( IDENT_9 . get ( STRING_1 0 ) ) . thenReturn ( IDENT_5 ) ; when ( response . METHOD_2 ( ) . get ( STRING_5 ) ) . thenReturn ( IDENT_9 ) ; when ( response . METHOD_2 ( ) . get ( STRING_6 ) ) . thenReturn ( java . util . Arrays . asList ( new java . lang . Double [ ] { FLOAT_1 , FLOAT_2 } ) ) ; when ( response . METHOD_2 ( ) . get ( STRING_7 ) ) . thenReturn ( FLOAT_3 ) ; when ( response . METHOD_2 ( ) . get ( STRING_8 ) ) . thenReturn ( 0.0 ) ; org . IDENT_7 . IDENT_8 . plugin . elasticsearch . model . entity . IDENT_10 expected = IDENT_10 . Builder . create ( ) . id ( 1L ) . METHOD_4 ( 1.0 , 2.0 ) . METHOD_4 ( 2.0 , FLOAT_0 ) . METHOD_5 ( STRING_0 , STRING_1 ) . build ( ) ; org . IDENT_7 . IDENT_8 . plugin . elasticsearch . model . entity . IDENT_10 actual = IDENT_10 . 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_9 ) ; org . IDENT_7 . IDENT_8 . plugin . elasticsearch . model . entity . IDENT_10 . Builder builder = new org . IDENT_7 . IDENT_8 . plugin . elasticsearch . model . entity . IDENT_10 . 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_9 = ( ( java . util . Map < java . lang . String , java . lang . Object > ) ( response . METHOD_2 ( ) . get ( STRING_5 ) ) ) ; java . lang . String type = ( ( java . lang . String ) ( IDENT_9 . get ( STRING_4 ) ) ) ; if ( STRING_10 . equals ( type ) ) { java . util . List < java . util . List < java . lang . Double > > IDENT_5 = ( ( java . util . List < java . util . List < java . lang . Double > > ) ( IDENT_9 . get ( STRING_11 ) ) ) ; for ( java . util . List < java . lang . Double > location : IDENT_5 ) { builder . METHOD_4 ( location . get ( 1 ) , location . get ( 0 ) ) ; } } else { java . util . List < java . util . List < java . util . List < java . lang . Double > > > IDENT_5 = ( ( java . util . List < java . util . List < java . util . List < java . lang . Double > > > ) ( IDENT_9 . get ( STRING_11 ) ) ) ; for ( java . util . List < java . lang . Double > location : IDENT_5 . get ( 0 ) ) { builder . METHOD_4 ( location . get ( 1 ) , location . get ( 0 ) ) ; } } java . util . List < java . lang . Double > IDENT_11 = ( ( java . util . List < java . lang . Double > ) ( response . METHOD_2 ( ) . get ( STRING_6 ) ) ) ; builder . IDENT_12 . METHOD_6 ( new org . IDENT_7 . IDENT_8 . plugin . elasticsearch . model . IDENT_9 . METHOD_7 ( IDENT_11 . get ( 1 ) , IDENT_11 . get ( 0 ) ) ) ; java . lang . Double length = ( ( java . lang . Double ) ( response . METHOD_2 ( ) . get ( STRING_7 ) ) ) ; builder . IDENT_12 . METHOD_8 ( length ) ; java . lang . Double IDENT_13 = ( ( java . lang . Double ) ( response . METHOD_2 ( ) . get ( STRING_8 ) ) ) ; builder . IDENT_12 . METHOD_9 ( IDENT_13 ) ; builder . IDENT_9 = builder . IDENT_12 . METHOD_10 ( ) ; return new org . IDENT_7 . IDENT_8 . plugin . elasticsearch . model . entity . METHOD_11 ( builder ) ; }
org . junit . Assert . assertEquals ( expected , actual )