METHOD_0 ( ) { ch . puzzle . itc . mobiliar . business . IDENT_0 . entity . IDENT_1 IDENT_2 = mock ( ch . puzzle . itc . mobiliar . business . IDENT_0 . entity . IDENT_1 . class ) ; java . util . Date IDENT_3 = new java . util . Date ( ) ; when ( IDENT_2 . METHOD_1 ( ) ) . thenReturn ( IDENT_3 ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . IDENT_5 test = ch . puzzle . itc . mobiliar . IDENT_6 . IDENT_7 . METHOD_2 ( IDENT_8 , IDENT_9 , IDENT_2 , null , IDENT_9 . METHOD_3 ( ) ) ; when ( IDENT_10 . find ( ch . puzzle . itc . mobiliar . business . IDENT_11 . entity . IDENT_12 . class , IDENT_9 . getId ( ) ) ) . thenReturn ( IDENT_9 ) ; when ( IDENT_10 . find ( METHOD_4 ( ch . puzzle . itc . mobiliar . business . IDENT_13 . entity . IDENT_14 . class ) , METHOD_5 ( ) ) ) . thenReturn ( IDENT_8 ) ; when ( IDENT_10 . find ( METHOD_4 ( ch . puzzle . itc . mobiliar . business . IDENT_11 . entity . IDENT_15 . class ) , METHOD_5 ( ) ) ) . thenReturn ( IDENT_9 . METHOD_3 ( ) ) ; when ( IDENT_16 . METHOD_6 ( IDENT_8 ) ) . thenReturn ( java . util . Collections . singletonList ( IDENT_8 ) ) ; when ( IDENT_17 . METHOD_7 ( any ( ch . puzzle . itc . mobiliar . business . IDENT_11 . entity . IDENT_15 . class ) , any ( ch . puzzle . itc . mobiliar . business . IDENT_18 . entity . IDENT_19 . class ) ) ) . thenReturn ( IDENT_9 ) ; ch . puzzle . itc . mobiliar . common . exception . IDENT_20 exception = new ch . puzzle . itc . mobiliar . common . exception . METHOD_8 ( "foo" , ch . puzzle . itc . mobiliar . common . exception . METHOD_8 . IDENT_21 . IDENT_22 ) ; when ( IDENT_16 . METHOD_9 ( any ( ch . puzzle . itc . mobiliar . business . generator . control . IDENT_23 . IDENT_24 . class ) ) ) . METHOD_10 ( exception ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . control . IDENT_25 result = service . METHOD_11 ( test ) ; "<AssertPlaceHolder>" ; verify ( IDENT_26 , times ( 1 ) ) . METHOD_12 ( exception , test . getId ( ) ) ; verify ( IDENT_26 , times ( 0 ) ) . METHOD_13 ( test ) ; } METHOD_11 ( ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . IDENT_5 ) { log . info ( ( STRING_0 + ( IDENT_27 . getId ( ) ) ) ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . control . IDENT_25 result = null ; try { result = METHOD_14 ( IDENT_27 ) ; if ( ( result != null ) && ( result . METHOD_15 ( ) ) ) { IDENT_26 . METHOD_12 ( result . METHOD_16 ( ) , IDENT_27 . getId ( ) ) ; } } catch ( final ch . puzzle . itc . mobiliar . common . exception . METHOD_8 e ) { IDENT_26 . METHOD_12 ( e , IDENT_27 . getId ( ) ) ; } catch ( final java . io . IOException e ) { IDENT_26 . METHOD_12 ( e , IDENT_27 . getId ( ) ) ; } return result ; }
org . junit . Assert . assertNull ( result )