METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . IDENT_3 IDENT_4 = new com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 ( ) ; IDENT_4 . setName ( com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_5 . IDENT_6 ) ; final com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 IDENT_7 = new com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 ( ) ; IDENT_7 . METHOD_2 ( com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_5 . IDENT_8 ) ; IDENT_7 . setName ( com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_5 . IDENT_6 ) ; IDENT_7 . METHOD_3 ( STRING_0 ) ; IDENT_7 . METHOD_4 ( STRING_1 ) ; IDENT_7 . METHOD_5 ( new java . util . Date ( ) ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . dao . IDENT_9 db = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . IDENT_9 . class ) ; when ( db . query ( org . mockito . Matchers . anyString ( ) , org . mockito . Matchers . eq ( com . google . common . collect . ImmutableMap . of ( "name" , com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_5 . IDENT_6 ) ) , org . mockito . Matchers . eq ( ( - 1 ) ) , org . mockito . Matchers . any ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . mapper . IDENT_10 . class ) ) ) . thenReturn ( com . google . common . collect . Lists . < com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 > newArrayList ( IDENT_7 ) ) ; when ( db . update ( org . mockito . Mockito . anyString ( ) , org . mockito . Matchers . METHOD_6 ( ) ) ) . thenReturn ( 1 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_11 IDENT_12 = new com . IDENT_0 . IDENT_1 . IDENT_2 . service . METHOD_7 ( ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_13 < ? > IDENT_14 = ( ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_13 < ? > ) ( com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_15 . METHOD_8 ( IDENT_12 , STRING_2 ) ) ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_13 < ? > rs = ( ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_13 < ? > ) ( com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_15 . METHOD_8 ( IDENT_12 , STRING_3 ) ) ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_15 . METHOD_9 ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_13 . class , IDENT_14 , STRING_4 , db ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . service . IDENT_15 . METHOD_9 ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_13 . class , rs , STRING_4 , db ) ; java . lang . String IDENT_16 = STRING_5 ; IDENT_4 . METHOD_10 ( IDENT_16 ) ; long id = IDENT_12 . METHOD_11 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_11 ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 ) { METHOD_12 ( IDENT_4 . getName ( ) ) ; METHOD_13 ( ( ! ( METHOD_14 ( IDENT_4 . getName ( ) ) ) ) , ( ( STRING_6 + ( IDENT_4 . getName ( ) ) ) + STRING_7 ) ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 IDENT_7 = new com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 ( ) ; IDENT_7 . setName ( IDENT_4 . getName ( ) ) ; java . util . List < com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 > list = IDENT_12 . get ( IDENT_7 ) ; METHOD_15 ( ( ( list . size ( ) ) == 1 ) , STRING_8 , IDENT_4 . getName ( ) ) ; IDENT_7 . setId ( list . get ( 0 ) . getId ( ) ) ; if ( ( IDENT_4 . METHOD_16 ( ) ) != null ) { IDENT_7 . METHOD_17 ( IDENT_4 . METHOD_16 ( ) ) ; } if ( ( IDENT_4 . METHOD_18 ( ) ) != null ) { IDENT_7 . METHOD_4 ( IDENT_4 . METHOD_18 ( ) ) ; } if ( ( IDENT_4 . METHOD_19 ( ) ) != null ) { IDENT_7 . METHOD_10 ( IDENT_4 . METHOD_19 ( ) ) ; } com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_4 . loader . IDENT_17 . METHOD_20 ( list . get ( 0 ) ) ; int response = IDENT_12 . METHOD_21 ( IDENT_7 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 IDENT_18 = METHOD_22 ( IDENT_4 . getName ( ) ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_4 . loader . IDENT_17 . METHOD_23 ( IDENT_18 ) ; return response ; }
org . junit . Assert . assertTrue ( ( id == 1 ) )