METHOD_0 ( ) { com . IDENT_0 . domain . model . IDENT_1 IDENT_2 = METHOD_1 ( ) ; com . IDENT_0 . domain . model . IDENT_1 IDENT_3 = METHOD_1 ( ) ; when ( IDENT_4 . METHOD_2 ( com . IDENT_0 . service . IDENT_5 . impl . test . IDENT_6 . id ) ) . thenReturn ( IDENT_2 ) . thenReturn ( IDENT_3 ) . thenReturn ( IDENT_7 ) ; when ( IDENT_8 . METHOD_3 ( IDENT_7 ) ) . thenReturn ( IDENT_9 ) ; com . IDENT_0 . domain . model . IDENT_1 result = IDENT_10 . METHOD_4 ( IDENT_7 ) ; verify ( IDENT_4 , times ( 2 ) ) . METHOD_2 ( com . IDENT_0 . service . IDENT_5 . impl . test . IDENT_6 . id ) ; verify ( IDENT_4 , times ( 1 ) ) . METHOD_5 ( IDENT_7 ) ; verify ( IDENT_11 ) . METHOD_6 ( IDENT_3 , 0 , ( - 1 ) ) ; verify ( IDENT_12 ) . METHOD_7 ( IDENT_7 ) ; verify ( IDENT_11 , times ( 0 ) ) . METHOD_8 ( new com . IDENT_0 . domain . model . METHOD_9 ( ) . getType ( ) , com . IDENT_0 . service . IDENT_5 . impl . test . IDENT_6 . id ) ; verify ( IDENT_8 , times ( 0 ) ) . METHOD_10 ( new com . IDENT_0 . domain . model . METHOD_9 ( ) . getType ( ) , com . IDENT_0 . service . IDENT_5 . impl . test . IDENT_6 . id ) ; verify ( IDENT_11 , times ( 0 ) ) . METHOD_11 ( new com . IDENT_0 . domain . model . METHOD_9 ( ) . getType ( ) , com . IDENT_0 . service . IDENT_5 . impl . test . IDENT_6 . id ) ; verify ( IDENT_8 , times ( 0 ) ) . METHOD_12 ( new com . IDENT_0 . domain . model . METHOD_9 ( ) . getType ( ) , com . IDENT_0 . service . IDENT_5 . impl . test . IDENT_6 . id ) ; verify ( IDENT_11 ) . METHOD_13 ( IDENT_7 ) ; verify ( IDENT_8 ) . METHOD_3 ( IDENT_7 ) ; verify ( IDENT_8 ) . METHOD_14 ( IDENT_9 ) ; "<AssertPlaceHolder>" ; } METHOD_14 ( com . IDENT_0 . domain . model . IDENT_13 ) { if ( IDENT_9 == null ) { return null ; } com . IDENT_0 . domain . model . IDENT_13 t = new com . IDENT_0 . domain . model . METHOD_15 ( ) ; t . METHOD_16 ( IDENT_9 . METHOD_17 ( ) ) ; t . METHOD_18 ( IDENT_9 . METHOD_19 ( ) ) ; com . IDENT_0 . domain . mapper . model . IDENT_14 example = new com . IDENT_0 . domain . mapper . model . METHOD_20 ( t ) ; java . util . List < com . IDENT_0 . domain . model . METHOD_15 > IDENT_15 = IDENT_16 . METHOD_21 ( example ) ; if ( ( IDENT_15 . size ( ) ) == 0 ) { METHOD_22 ( IDENT_9 ) ; return IDENT_9 ; } else { IDENT_9 . setId ( IDENT_15 . get ( 0 ) . getId ( ) ) ; IDENT_9 . METHOD_23 ( null ) ; METHOD_24 ( IDENT_9 ) ; return IDENT_9 ; } }
org . junit . Assert . assertEquals ( IDENT_7 , result )