METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . Integer type = INT_0 ; java . util . List < ch . puzzle . itc . mobiliar . business . server . entity . IDENT_1 > list = new java . util . ArrayList ( ) ; when ( IDENT_2 . METHOD_1 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . METHOD_2 ( ) ) ) . thenReturn ( list ) ; ch . IDENT_3 . itc . mobiliar . rest . resources . IDENT_4 result = rest . METHOD_3 ( IDENT_0 , type , null , null , null , null , null ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , int , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String ) { ch . IDENT_3 . itc . mobiliar . rest . resources . IDENT_4 IDENT_5 = new ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_4 ( ) ; ch . IDENT_3 . itc . mobiliar . rest . resources . List < ch . puzzle . itc . mobiliar . business . IDENT_6 . entity . IDENT_7 > IDENT_8 = IDENT_9 . METHOD_5 ( IDENT_10 ) ; ch . IDENT_3 . itc . mobiliar . rest . resources . List < java . lang . String > IDENT_11 = new ch . IDENT_3 . itc . mobiliar . rest . resources . ArrayList ( ) ; for ( ch . puzzle . itc . mobiliar . business . IDENT_6 . entity . IDENT_7 IDENT_12 : IDENT_8 ) { for ( ch . puzzle . itc . mobiliar . business . IDENT_13 . entity . IDENT_14 a : IDENT_12 . METHOD_6 ( ) ) { ch . IDENT_3 . itc . mobiliar . rest . resources . IDENT_15 job = new ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 ( a ) ; if ( ( ( IDENT_16 != null ) && ( ! ( IDENT_16 . isEmpty ( ) ) ) ) && ( ( job . METHOD_8 ( ) ) != null ) ) { if ( ! ( job . METHOD_8 ( ) . toLowerCase ( ) . contains ( IDENT_16 . toLowerCase ( ) ) ) ) { break ; } } if ( ( ( IDENT_17 != null ) && ( ! ( IDENT_17 . isEmpty ( ) ) ) ) && ( ( job . METHOD_9 ( ) ) != null ) ) { if ( ! ( job . METHOD_9 ( ) . toLowerCase ( ) . contains ( IDENT_17 . toLowerCase ( ) ) ) ) { break ; } } IDENT_5 . METHOD_10 ( ) . add ( job ) ; if ( ! ( IDENT_11 . contains ( job . METHOD_8 ( ) ) ) ) { IDENT_11 . add ( job . METHOD_8 ( ) . toLowerCase ( ) ) ; } } } ch . IDENT_3 . itc . mobiliar . rest . resources . List < ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 > IDENT_18 = new ch . IDENT_3 . itc . mobiliar . rest . resources . ArrayList ( ) ; for ( ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 job : IDENT_5 . METHOD_10 ( ) ) { if ( ( IDENT_19 != null ) && ( ! ( IDENT_19 . isEmpty ( ) ) ) ) { if ( ( job . METHOD_11 ( ) ) == null ) { IDENT_18 . add ( job ) ; } else if ( ! ( job . METHOD_11 ( ) . toLowerCase ( ) . contains ( IDENT_19 . toLowerCase ( ) ) ) ) { IDENT_18 . add ( job ) ; } } } for ( ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 IDENT_20 : IDENT_18 ) { IDENT_5 . METHOD_10 ( ) . remove ( IDENT_20 ) ; } java . lang . String IDENT_21 = null ; java . lang . String runtime = STRING_1 ; java . lang . String host = null ; java . lang . String node = null ; ch . IDENT_3 . itc . mobiliar . rest . resources . List < ch . puzzle . itc . mobiliar . business . server . entity . IDENT_1 > IDENT_22 = IDENT_23 . METHOD_1 ( host , IDENT_21 , runtime , node , IDENT_0 , true ) ; ch . IDENT_3 . itc . mobiliar . rest . resources . List < java . lang . String > IDENT_24 = new ch . IDENT_3 . itc . mobiliar . rest . resources . ArrayList ( ) ; for ( ch . puzzle . itc . mobiliar . business . server . entity . IDENT_1 t : IDENT_22 ) { IDENT_24 . add ( t . METHOD_12 ( ) . toLowerCase ( ) ) ; } ch . IDENT_3 . itc . mobiliar . rest . resources . Map < java . lang . String , java . lang . String > mapping = IDENT_9 . METHOD_13 ( IDENT_24 ) ; for ( ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 job : IDENT_5 . METHOD_10 ( ) ) { java . lang . String IDENT_25 = mapping . get ( job . METHOD_8 ( ) ) ; job . METHOD_14 ( IDENT_25 ) ; } for ( ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 job : IDENT_5 . METHOD_10 ( ) ) { for ( ch . puzzle . itc . mobiliar . business . server . entity . IDENT_1 server : IDENT_22 ) { if ( ( ( job . METHOD_15 ( ) ) != null ) && ( job . METHOD_15 ( ) . equals ( server . METHOD_12 ( ) ) ) ) { job . METHOD_16 ( server . METHOD_17 ( ) ) ; } } } ch . IDENT_3 . itc . mobiliar . rest . resources . List < ch . puzzle . itc . mobiliar . business . IDENT_6 . entity . IDENT_7 > resources = IDENT_9 . METHOD_18 ( IDENT_11 ) ; if ( ( resources != null ) && ( ! ( resources . isEmpty ( ) ) ) ) { for ( ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 job : IDENT_5 . METHOD_10 ( ) ) { for ( ch . puzzle . itc . mobiliar . business . IDENT_6 . entity . IDENT_7 IDENT_12 : resources ) { for ( ch . puzzle . itc . mobiliar . business . IDENT_13 . entity . IDENT_14 r : IDENT_12 . METHOD_6 ( ) ) { if ( r . METHOD_19 ( ) . equals ( job . METHOD_8 ( ) ) ) { if ( r . METHOD_20 ( ) . equals ( Constants . IDENT_26 ) ) { job . METHOD_21 ( true ) ; } if ( r . METHOD_20 ( ) . equals ( Constants . IDENT_27 ) ) { job . METHOD_22 ( true ) ; } if ( ( r . METHOD_20 ( ) . equals ( Constants . IDENT_28 ) ) || ( r . METHOD_20 ( ) . equals ( Constants . IDENT_29 ) ) ) { job . METHOD_23 ( true ) ; if ( ! ( job . METHOD_24 ( ) . contains ( r . METHOD_25 ( ) . getName ( ) ) ) ) { job . METHOD_24 ( ) . add ( r . METHOD_25 ( ) . getName ( ) ) ; } } if ( r . METHOD_20 ( ) . equals ( Constants . IDENT_30 ) ) { job . METHOD_26 ( true ) ; } } } } } } ch . IDENT_3 . itc . mobiliar . rest . resources . List < ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 > IDENT_31 = new ch . IDENT_3 . itc . mobiliar . rest . resources . ArrayList ( ) ; for ( ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 job : IDENT_5 . METHOD_10 ( ) ) { if ( ( IDENT_32 != null ) && ( ! ( IDENT_32 . isEmpty ( ) ) ) ) { if ( ( IDENT_32 . equalsIgnoreCase ( ch . IDENT_3 . itc . mobiliar . rest . resources . IDENT_33 . IDENT_34 ) ) && ( ! ( job . METHOD_27 ( ) ) ) ) { IDENT_31 . add ( job ) ; } if ( ( IDENT_32 . equalsIgnoreCase ( ch . IDENT_3 . itc . mobiliar . rest . resources . IDENT_33 . IDENT_35 ) ) && ( ! ( job . METHOD_28 ( ) ) ) ) { IDENT_31 . add ( job ) ; } } if ( ( IDENT_36 != null ) && ( ! ( IDENT_36 . isEmpty ( ) ) ) ) { boolean found = false ; for ( java . lang . String ws : job . METHOD_24 ( ) ) { if ( ws . toLowerCase ( ) . contains ( IDENT_36 ) ) { found = true ; } } if ( ! found ) { if ( ! ( IDENT_31 . contains ( job ) ) ) { IDENT_31 . add ( job ) ; } } } } for ( ch . IDENT_3 . itc . mobiliar . rest . resources . METHOD_7 job : IDENT_31 ) { IDENT_5 . METHOD_10 ( ) . remove ( job ) ; } return IDENT_5 ; }
org . junit . Assert . assertTrue ( ( result != null ) )