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