METHOD_0 ( ) { org . mockito . Mockito . when ( IDENT_0 . METHOD_1 ( org . mockito . Matchers . METHOD_2 ( ) , org . mockito . Matchers . METHOD_3 ( ) ) ) . METHOD_4 ( ) ; final int IDENT_1 = INT_0 ; final java . util . Set < ch . puzzle . itc . mobiliar . business . IDENT_2 . entity . IDENT_3 > IDENT_4 = new java . util . HashSet < ch . puzzle . itc . mobiliar . business . IDENT_2 . entity . IDENT_3 > ( ) ; final ch . puzzle . itc . mobiliar . business . IDENT_2 . entity . IDENT_3 IDENT_5 = org . mockito . Mockito . mock ( ch . puzzle . itc . mobiliar . business . IDENT_2 . entity . IDENT_3 . class ) ; IDENT_4 . add ( IDENT_5 ) ; final ch . puzzle . itc . mobiliar . business . IDENT_6 . entity . IDENT_7 IDENT_8 = org . mockito . Mockito . mock ( ch . puzzle . itc . mobiliar . business . IDENT_6 . entity . IDENT_7 . class ) ; org . mockito . Mockito . when ( IDENT_8 . getId ( ) ) . thenReturn ( IDENT_1 ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_5 ( ) ) . thenReturn ( IDENT_8 ) ; final ch . puzzle . itc . mobiliar . business . IDENT_2 . entity . IDENT_9 result = IDENT_0 . METHOD_1 ( IDENT_1 , IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . Integer , ch . puzzle . itc . mobiliar . business . IDENT_6 . entity . Set ) { if ( IDENT_4 != null ) { for ( final T IDENT_10 : IDENT_4 ) { if ( IDENT_10 . METHOD_5 ( ) . getId ( ) . equals ( IDENT_11 ) ) { return IDENT_10 ; } } } return null ; }
org . junit . Assert . assertEquals ( IDENT_5 , result )