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 . IDENT_5 . db . IDENT_6 . IDENT_7 ) ; final com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 IDENT_8 = new com . IDENT_0 . IDENT_1 . IDENT_2 . dao . model . METHOD_1 ( ) ; IDENT_8 . setName ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 . db . IDENT_6 . IDENT_7 ) ; IDENT_8 . METHOD_2 ( 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 . IDENT_5 . db . IDENT_6 . IDENT_7 ) ) , 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_8 ) ) ; when ( db . update ( org . mockito . Mockito . anyString ( ) , org . mockito . Matchers . METHOD_3 ( ) ) ) . thenReturn ( 1 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_11 IDENT_12 = new com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . METHOD_4 ( ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 . db . IDENT_13 . METHOD_5 ( com . IDENT_0 . IDENT_1 . IDENT_2 . dao . service . IDENT_14 . class , IDENT_12 , STRING_0 , db ) ; java . lang . String IDENT_15 = STRING_1 ; IDENT_4 . METHOD_6 ( IDENT_15 ) ; long id = IDENT_12 . METHOD_7 ( IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . util . Properties ) { this . properties = properties ; }
org . junit . Assert . assertTrue ( ( id == 1 ) )