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