METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . IDENT_2 . impl . repository . IDENT_3 IDENT_4 = service . from ( org . IDENT_0 . IDENT_1 . IDENT_2 . api . repository . IDENT_5 . METHOD_1 ( ) ) ; when ( IDENT_6 . METHOD_2 ( any ( java . lang . Class . class ) , any ( org . IDENT_0 . IDENT_1 . core . api . criteria . IDENT_7 . class ) ) ) . thenReturn ( null ) ; when ( IDENT_6 . save ( any ( org . IDENT_0 . IDENT_1 . IDENT_2 . impl . repository . IDENT_3 . class ) , any ( org . IDENT_0 . IDENT_1 . IDENT_8 . data . IDENT_9 . class ) ) ) . thenReturn ( IDENT_4 ) ; org . IDENT_0 . IDENT_1 . IDENT_2 . api . repository . IDENT_10 . IDENT_11 IDENT_12 = org . IDENT_0 . IDENT_1 . IDENT_2 . api . repository . IDENT_5 . METHOD_3 ( ) ; IDENT_13 = service . METHOD_4 ( IDENT_12 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . IDENT_0 . IDENT_1 . IDENT_2 . api . repository . IDENT_10 . IDENT_11 ) { METHOD_5 ( IDENT_13 , STRING_0 ) ; if ( org . apache . commons . lang . StringUtils . METHOD_6 ( IDENT_13 . getId ( ) ) ) { final java . lang . String IDENT_14 = IDENT_13 . getId ( ) ; final org . IDENT_0 . IDENT_1 . IDENT_2 . api . repository . IDENT_10 . IDENT_11 IDENT_15 = METHOD_7 ( IDENT_14 ) ; if ( IDENT_15 != null ) { throw new java . lang . IllegalStateException ( ( STRING_1 + IDENT_13 ) ) ; } } else { final org . IDENT_0 . IDENT_1 . IDENT_2 . api . repository . IDENT_10 . IDENT_11 IDENT_15 = METHOD_8 ( IDENT_13 . METHOD_9 ( ) , IDENT_13 . getName ( ) ) ; if ( IDENT_15 != null ) { throw new java . lang . IllegalStateException ( ( STRING_1 + IDENT_13 ) ) ; } } org . IDENT_0 . IDENT_1 . IDENT_2 . impl . repository . IDENT_3 IDENT_16 = IDENT_17 . save ( from ( IDENT_13 ) , IDENT_9 . IDENT_18 ) ; return org . IDENT_0 . IDENT_1 . IDENT_2 . impl . repository . IDENT_3 . to ( IDENT_16 ) ; }
org . junit . Assert . assertNotNull ( IDENT_13 )