METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( eq ( io . IDENT_1 . management . service . IDENT_2 . IDENT_3 ) , any ( ) ) ) . thenReturn ( java . util . Collections . METHOD_2 ( ) ) ; java . util . List < io . IDENT_1 . management . model . IDENT_4 > IDENT_5 = IDENT_6 . METHOD_3 ( io . IDENT_1 . management . service . IDENT_2 . IDENT_3 , IDENT_7 . IDENT_8 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_9 , METHOD_4 ( ) ) . search ( any ( io . IDENT_1 . management . model . api . IDENT_10 . class ) ) ; verify ( IDENT_11 , METHOD_4 ( ) ) . METHOD_5 ( any ( ) ) ; } METHOD_3 ( java . lang . String , io . IDENT_1 . repository . management . model . IDENT_7 ) { if ( ( type == null ) || ( ( ( ! ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_8 ) ) ) && ( ! ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_12 ) ) ) ) && ( ! ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_13 ) ) ) ) ) { return io . IDENT_1 . management . service . impl . Collections . emptyList ( ) ; } try { io . IDENT_1 . management . service . impl . Set < io . IDENT_1 . management . service . impl . IDENT_4 > IDENT_14 = IDENT_15 . METHOD_1 ( IDENT_16 , type ) . stream ( ) . map ( ( IDENT_17 ) -> { io . IDENT_1 . management . service . impl . IDENT_4 IDENT_18 = new io . IDENT_1 . management . service . impl . METHOD_6 ( ) ; IDENT_18 . METHOD_7 ( type . name ( ) ) ; IDENT_18 . METHOD_8 ( IDENT_17 . METHOD_9 ( ) ) ; return IDENT_18 ; } ) . collect ( java . util . stream . IDENT_19 . METHOD_10 ( ) ) ; if ( ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_12 ) ) || ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_8 ) ) ) { final io . IDENT_1 . management . service . impl . List < java . lang . String > IDENT_20 = IDENT_15 . METHOD_1 ( IDENT_16 , io . IDENT_1 . management . service . impl . IDENT_13 ) . stream ( ) . filter ( ( m ) -> m . METHOD_11 ( ) . METHOD_12 ( ) . contains ( ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_8 ) ? IDENT_21 . IDENT_8 . getId ( ) : IDENT_21 . IDENT_12 . getId ( ) ) ) ) . map ( IDENT_22 :: METHOD_9 ) . collect ( java . util . stream . IDENT_19 . toList ( ) ) ; if ( ( ! ( IDENT_20 . isEmpty ( ) ) ) && ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_8 ) ) ) { io . IDENT_1 . management . model . api . IDENT_10 IDENT_23 = new io . IDENT_1 . management . model . api . METHOD_13 ( ) ; IDENT_23 . METHOD_14 ( IDENT_20 ) ; IDENT_14 . addAll ( IDENT_24 . search ( IDENT_23 ) . stream ( ) . map ( ( IDENT_25 ) -> { io . IDENT_1 . management . service . impl . METHOD_6 IDENT_18 = new io . IDENT_1 . management . service . impl . METHOD_6 ( ) ; IDENT_18 . METHOD_8 ( IDENT_25 . getId ( ) ) ; IDENT_18 . METHOD_7 ( type . name ( ) ) ; return IDENT_18 ; } ) . collect ( java . util . stream . IDENT_19 . METHOD_10 ( ) ) ) ; } else if ( ( ! ( IDENT_20 . isEmpty ( ) ) ) && ( type . equals ( io . IDENT_1 . management . service . impl . IDENT_12 ) ) ) { IDENT_14 . addAll ( IDENT_26 . METHOD_5 ( IDENT_20 ) . stream ( ) . map ( ( IDENT_27 ) -> { io . IDENT_1 . management . service . impl . METHOD_6 IDENT_18 = new io . IDENT_1 . management . service . impl . METHOD_6 ( ) ; IDENT_18 . METHOD_8 ( IDENT_27 . getId ( ) ) ; IDENT_18 . METHOD_7 ( type . name ( ) ) ; return IDENT_18 ; } ) . collect ( java . util . stream . IDENT_19 . METHOD_10 ( ) ) ) ; } } return new io . IDENT_1 . management . service . impl . ArrayList ( IDENT_14 ) ; } catch ( io . IDENT_1 . repository . exceptions . IDENT_28 ex ) { LOGGER . error ( STRING_0 , IDENT_16 , ex ) ; throw new io . IDENT_1 . management . service . impl . METHOD_15 ( ( STRING_1 + IDENT_16 ) , ex ) ; } }
org . junit . Assert . assertTrue ( IDENT_5 . isEmpty ( ) )