METHOD_0 ( ) { ch . puzzle . itc . mobiliar . business . IDENT_0 . entity . IDENT_1 context = new ch . puzzle . itc . mobiliar . business . IDENT_0 . entity . METHOD_1 ( ) ; context . setName ( STRING_0 ) ; IDENT_2 . METHOD_2 ( context ) ; ch . puzzle . itc . mobiliar . business . IDENT_3 . entity . IDENT_4 type = new ch . puzzle . itc . mobiliar . business . IDENT_3 . entity . METHOD_3 ( ) ; type . setName ( STRING_1 ) ; IDENT_2 . METHOD_2 ( type ) ; ch . puzzle . itc . mobiliar . business . IDENT_5 . entity . IDENT_6 IDENT_7 = new ch . puzzle . itc . mobiliar . business . IDENT_5 . entity . METHOD_4 ( ) ; IDENT_7 . setName ( STRING_2 ) ; IDENT_7 . METHOD_5 ( new java . util . Date ( ) ) ; IDENT_2 . METHOD_2 ( IDENT_7 ) ; ch . puzzle . itc . mobiliar . business . IDENT_3 . entity . IDENT_8 IDENT_9 = ch . puzzle . itc . mobiliar . business . IDENT_3 . entity . IDENT_10 . METHOD_6 ( ) ; IDENT_9 . METHOD_7 ( IDENT_7 ) ; IDENT_2 . METHOD_2 ( IDENT_9 ) ; when ( IDENT_11 . METHOD_8 ( type . getName ( ) ) ) . thenReturn ( type ) ; ch . puzzle . itc . mobiliar . business . IDENT_12 . entity . IDENT_13 order = ch . puzzle . itc . mobiliar . IDENT_14 . IDENT_15 . METHOD_9 ( context , IDENT_7 , java . util . Collections . singletonList ( IDENT_9 . METHOD_10 ( ) ) ) ; java . lang . Integer result = service . METHOD_11 ( java . util . Collections . singletonList ( order ) ) ; "<AssertPlaceHolder>" ; } METHOD_11 ( ch . puzzle . itc . mobiliar . business . IDENT_12 . control . List ) { java . lang . Integer IDENT_16 = null ; if ( IDENT_17 != null ) { IDENT_16 = IDENT_18 . METHOD_12 ( IDENT_19 . IDENT_20 ) ; for ( ch . puzzle . itc . mobiliar . business . IDENT_12 . entity . IDENT_13 IDENT_21 : IDENT_17 ) { ch . puzzle . itc . mobiliar . business . IDENT_0 . entity . METHOD_1 IDENT_22 = em . find ( ch . puzzle . itc . mobiliar . business . IDENT_0 . entity . METHOD_1 . class , IDENT_21 . METHOD_13 ( ) . getId ( ) ) ; for ( ch . puzzle . itc . mobiliar . business . IDENT_12 . control . IDENT_23 IDENT_24 : IDENT_21 . METHOD_14 ( ) ) { ch . puzzle . itc . mobiliar . business . IDENT_12 . control . IDENT_23 group = em . find ( ch . puzzle . itc . mobiliar . business . IDENT_12 . control . IDENT_23 . class , IDENT_24 . getId ( ) ) ; ch . puzzle . itc . mobiliar . business . IDENT_12 . control . IDENT_8 IDENT_25 ; ch . puzzle . itc . mobiliar . business . IDENT_26 . entity . IDENT_27 IDENT_28 ; ch . puzzle . itc . mobiliar . business . IDENT_5 . entity . METHOD_4 IDENT_29 ; if ( ( IDENT_21 . METHOD_15 ( ) ) != null ) { IDENT_29 = IDENT_21 . METHOD_15 ( ) ; IDENT_25 = IDENT_30 . METHOD_16 ( group , IDENT_29 ) ; IDENT_28 = METHOD_17 ( group , IDENT_25 . METHOD_15 ( ) , IDENT_22 ) ; } else { IDENT_28 = METHOD_18 ( group , IDENT_22 ) ; IDENT_25 = ( IDENT_28 != null ) ? IDENT_28 . getResource ( ) : null ; IDENT_29 = ( IDENT_28 != null ) ? IDENT_28 . METHOD_15 ( ) : null ; } if ( IDENT_25 != null ) { ch . puzzle . itc . mobiliar . business . IDENT_12 . control . IDENT_31 . METHOD_19 ( IDENT_25 , IDENT_32 , null ) ; ch . puzzle . itc . mobiliar . business . IDENT_12 . control . Map < java . lang . Integer , java . lang . String > IDENT_33 = new ch . puzzle . itc . mobiliar . business . IDENT_12 . control . HashMap ( ) ; ch . puzzle . itc . mobiliar . business . IDENT_12 . control . Set < ch . puzzle . itc . mobiliar . business . IDENT_12 . control . IDENT_8 > IDENT_34 = IDENT_30 . METHOD_20 ( IDENT_25 , IDENT_35 . IDENT_36 , IDENT_29 ) ; for ( ch . puzzle . itc . mobiliar . business . IDENT_12 . control . IDENT_8 application : IDENT_34 ) { IDENT_33 . put ( application . getId ( ) , application . getName ( ) ) ; } METHOD_21 ( IDENT_16 , IDENT_22 , IDENT_25 , IDENT_28 , IDENT_33 , IDENT_29 , group , new ch . puzzle . itc . mobiliar . business . IDENT_12 . control . Date ( ) ) ; if ( IDENT_21 . METHOD_22 ( ) ) { METHOD_23 ( IDENT_25 , IDENT_16 , IDENT_22 , IDENT_29 ) ; } } else { log . log ( IDENT_37 . IDENT_38 , ( ( ( STRING_3 + ( group . getName ( ) ) ) + STRING_4 ) + ( IDENT_21 . METHOD_15 ( ) . getName ( ) ) ) ) ; } } } } return IDENT_16 ; }
org . junit . Assert . assertNotNull ( result )