METHOD_0 ( ) { int IDENT_0 = 1 ; int IDENT_1 = 2 ; java . lang . String name = STRING_0 ; long size = INT_0 ; byte [ ] file = name . getBytes ( ) ; java . lang . String IDENT_2 = STRING_1 ; com . IDENT_3 . domain . model . IDENT_4 IDENT_5 = METHOD_1 ( ) ; com . IDENT_3 . service . IDENT_6 . IDENT_7 IDENT_8 = METHOD_2 ( IDENT_9 ) ; doReturn ( IDENT_5 ) . when ( IDENT_8 ) . create ( any ( com . IDENT_3 . domain . model . IDENT_4 . class ) ) ; METHOD_3 ( ) . when ( IDENT_8 ) . METHOD_4 ( com . IDENT_3 . service . IDENT_6 . impl . test . IDENT_10 . id ) ; when ( IDENT_11 . METHOD_5 ( IDENT_2 , file ) ) . thenReturn ( false ) ; com . IDENT_3 . domain . model . IDENT_4 result = IDENT_8 . METHOD_6 ( IDENT_0 , IDENT_1 , name , size , com . IDENT_3 . service . IDENT_6 . impl . test . IDENT_10 . IDENT_12 , file ) ; "<AssertPlaceHolder>" ; verify ( IDENT_11 ) . METHOD_5 ( IDENT_2 , file ) ; verify ( IDENT_8 ) . METHOD_4 ( com . IDENT_3 . service . IDENT_6 . impl . test . IDENT_10 . id ) ; } METHOD_6 ( int , int , java . lang . String , long , java . lang . String , byte [ ] ) { com . IDENT_3 . domain . model . IDENT_4 IDENT_13 = new com . IDENT_3 . domain . model . METHOD_7 ( ) ; IDENT_13 . setName ( name ) ; IDENT_13 . METHOD_8 ( IDENT_14 ) ; IDENT_13 . METHOD_9 ( com . IDENT_3 . service . IDENT_6 . impl . IDENT_15 ) ; IDENT_13 . METHOD_10 ( com . IDENT_3 . service . IDENT_6 . impl . IDENT_16 ) ; IDENT_13 . METHOD_11 ( new java . util . Date ( ) ) ; IDENT_13 . METHOD_12 ( size ) ; IDENT_13 . METHOD_13 ( IDENT_17 . METHOD_14 ( ) . getId ( ) ) ; IDENT_13 . METHOD_15 ( IDENT_17 . METHOD_14 ( ) . getName ( ) ) ; IDENT_13 . METHOD_16 ( IDENT_17 . METHOD_14 ( ) . METHOD_17 ( ) ) ; IDENT_13 . METHOD_18 ( IDENT_1 ) ; IDENT_13 . METHOD_19 ( IDENT_0 ) ; IDENT_13 = create ( IDENT_13 ) ; java . lang . String path = org . springframework . util . StringUtils . METHOD_20 ( new java . lang . String [ ] { "" , STRING_2 , java . lang . String . valueOf ( IDENT_1 ) , STRING_3 , java . lang . String . valueOf ( IDENT_13 . getId ( ) ) } , "/" ) ; if ( IDENT_18 . METHOD_5 ( path , file ) ) { return IDENT_13 ; } else { METHOD_4 ( IDENT_13 . getId ( ) ) ; return null ; } }
org . junit . Assert . assertNull ( result )