METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . IDENT_3 IDENT_4 = mock ( org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . IDENT_3 . class ) ; when ( IDENT_4 . getId ( ) ) . thenReturn ( 1L ) ; java . util . List < org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . IDENT_5 > IDENT_6 = new java . util . ArrayList < org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . IDENT_5 > ( ) ; IDENT_6 . add ( new org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . METHOD_1 ( STRING_0 , STRING_1 ) ) ; when ( IDENT_4 . METHOD_2 ( ) ) . thenReturn ( IDENT_6 ) ; java . util . List < org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . IDENT_7 > IDENT_8 = new java . util . ArrayList < org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . IDENT_7 > ( ) ; IDENT_8 . add ( new org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . METHOD_3 ( 1L ) ) ; IDENT_8 . add ( new org . IDENT_0 . IDENT_1 . core . domain . IDENT_2 . METHOD_3 ( INT_0 ) ) ; when ( IDENT_4 . METHOD_4 ( ) ) . thenReturn ( IDENT_8 ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . IDENT_9 . IDENT_10 . IDENT_11 builder = new org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . IDENT_9 . IDENT_10 . METHOD_5 ( ) ; builder . METHOD_6 ( 1.0 , 2.0 ) . METHOD_6 ( 2.0 , FLOAT_0 ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_12 expected = IDENT_12 . Builder . create ( ) . id ( 1L ) . METHOD_6 ( 1.0 , 2.0 ) . METHOD_6 ( 2.0 , FLOAT_0 ) . METHOD_7 ( STRING_0 , STRING_1 ) . build ( ) ; org . IDENT_0 . IDENT_1 . plugin . elasticsearch . model . entity . IDENT_12 actual = IDENT_12 . Builder . METHOD_8 ( IDENT_4 , builder . build ( ) ) ; "<AssertPlaceHolder>" ; } build ( ) { org . elasticsearch . client . IDENT_13 client = ( IDENT_14 ) ? METHOD_9 ( ) : METHOD_10 ( ) ; METHOD_11 ( client ) ; return client ; }
org . junit . Assert . assertEquals ( expected , actual )