METHOD_0 ( ) { when ( api . METHOD_1 ( ) ) . thenReturn ( IDENT_0 . IDENT_1 ) ; when ( api . getId ( ) ) . thenReturn ( STRING_0 ) ; io . IDENT_2 . repository . management . model . IDENT_3 IDENT_4 = new io . IDENT_2 . repository . management . model . METHOD_2 ( ) ; io . IDENT_2 . repository . management . model . METHOD_2 IDENT_5 = new io . IDENT_2 . repository . management . model . METHOD_2 ( ) ; IDENT_4 . setId ( STRING_1 ) ; IDENT_5 . setId ( STRING_2 ) ; when ( IDENT_6 . METHOD_3 ( ) ) . thenReturn ( new java . util . HashSet ( java . util . Arrays . asList ( IDENT_4 , IDENT_5 ) ) ) ; when ( IDENT_7 . METHOD_4 ( IDENT_8 . IDENT_9 , api . getId ( ) , STRING_3 , IDENT_10 . IDENT_9 ) ) . thenReturn ( null ) ; when ( IDENT_7 . METHOD_4 ( IDENT_8 . IDENT_11 , STRING_2 , STRING_3 , IDENT_10 . IDENT_9 ) ) . thenReturn ( null ) ; boolean IDENT_12 = IDENT_13 . METHOD_5 ( api , java . util . Collections . singletonList ( STRING_1 ) , STRING_3 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_7 , times ( 2 ) ) . METHOD_4 ( any ( ) , any ( ) , any ( ) , any ( ) ) ; verify ( IDENT_7 , times ( 1 ) ) . METHOD_4 ( IDENT_8 . IDENT_9 , api . getId ( ) , STRING_3 , IDENT_10 . IDENT_9 ) ; verify ( IDENT_7 , times ( 1 ) ) . METHOD_4 ( IDENT_8 . IDENT_11 , STRING_2 , STRING_3 , IDENT_10 . IDENT_9 ) ; verify ( api , METHOD_6 ( ) ) . METHOD_7 ( ) ; verify ( IDENT_6 , times ( 1 ) ) . METHOD_3 ( ) ; } METHOD_5 ( io . IDENT_2 . management . model . api . IDENT_14 , io . IDENT_2 . management . service . impl . List , java . lang . String ) { if ( IDENT_15 == null ) { return ( ( IDENT_16 == null ) || ( IDENT_16 . isEmpty ( ) ) ) && ( IDENT_0 . IDENT_1 . equals ( api . METHOD_1 ( ) ) ) ; } if ( ( ( IDENT_16 != null ) && ( ! ( IDENT_16 . isEmpty ( ) ) ) ) && ( ( IDENT_7 . METHOD_4 ( IDENT_8 . IDENT_9 , api . getId ( ) , IDENT_15 , IDENT_10 . IDENT_9 ) ) == null ) ) { io . IDENT_2 . management . service . impl . Set < java . lang . String > IDENT_17 = io . IDENT_2 . management . service . impl . Collections . METHOD_8 ( ) ; if ( ( ( IDENT_0 . IDENT_18 . equals ( api . METHOD_1 ( ) ) ) && ( ( api . METHOD_7 ( ) ) != null ) ) && ( ! ( api . METHOD_7 ( ) . isEmpty ( ) ) ) ) { IDENT_17 = new io . IDENT_2 . management . service . impl . HashSet ( api . METHOD_7 ( ) ) ; } if ( IDENT_0 . IDENT_1 . equals ( api . METHOD_1 ( ) ) ) { try { IDENT_17 = IDENT_6 . METHOD_3 ( ) . stream ( ) . map ( METHOD_2 :: getId ) . collect ( java . util . stream . IDENT_19 . METHOD_9 ( ) ) ; } catch ( io . IDENT_2 . repository . exceptions . IDENT_20 ex ) { logger . error ( STRING_4 , ex ) ; throw new io . IDENT_2 . management . service . exceptions . METHOD_10 ( STRING_4 , ex ) ; } } IDENT_17 . METHOD_11 ( IDENT_16 ) ; for ( java . lang . String IDENT_21 : IDENT_17 ) { if ( ( IDENT_7 . METHOD_4 ( IDENT_8 . IDENT_11 , IDENT_21 , IDENT_15 , IDENT_10 . IDENT_9 ) ) != null ) { return true ; } } return false ; } return true ; }
org . junit . Assert . assertFalse ( IDENT_12 )