METHOD_0 ( ) { io . IDENT_0 . repository . management . model . IDENT_1 IDENT_2 = new io . IDENT_0 . repository . management . model . METHOD_1 ( ) ; IDENT_2 . setId ( STRING_0 ) ; IDENT_2 . METHOD_2 ( METHOD_1 . Status . IDENT_3 ) ; IDENT_2 . METHOD_3 ( io . IDENT_0 . management . service . IDENT_4 . IDENT_5 ) ; io . IDENT_0 . repository . management . model . METHOD_1 IDENT_6 = new io . IDENT_0 . repository . management . model . METHOD_1 ( ) ; IDENT_6 . setId ( STRING_1 ) ; IDENT_6 . METHOD_2 ( METHOD_1 . Status . IDENT_7 ) ; IDENT_6 . METHOD_3 ( io . IDENT_0 . management . service . IDENT_4 . IDENT_5 ) ; when ( IDENT_8 . search ( new io . IDENT_0 . repository . management . api . search . IDENT_9 . Builder ( ) . METHOD_4 ( io . IDENT_0 . management . service . Collections . METHOD_5 ( io . IDENT_0 . management . service . IDENT_4 . IDENT_5 ) ) . build ( ) ) ) . thenReturn ( io . IDENT_0 . management . service . Arrays . asList ( IDENT_2 , IDENT_6 ) ) ; io . IDENT_0 . management . service . Collection < io . IDENT_0 . management . service . IDENT_10 > IDENT_11 = IDENT_12 . METHOD_6 ( io . IDENT_0 . management . service . IDENT_4 . IDENT_5 , null ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . lang . String , java . lang . String ) { logger . debug ( STRING_2 , application , plan ) ; io . IDENT_0 . management . model . IDENT_13 . IDENT_14 query = new io . IDENT_0 . management . model . IDENT_13 . METHOD_7 ( ) ; if ( plan != null ) { query . METHOD_8 ( plan ) ; } if ( ( application != null ) && ( ! ( application . trim ( ) . isEmpty ( ) ) ) ) { query . METHOD_3 ( application ) ; } else if ( METHOD_9 ( ) ) { io . IDENT_0 . management . service . impl . Set < io . IDENT_0 . management . model . application . IDENT_15 > METHOD_4 = IDENT_16 . METHOD_10 ( METHOD_11 ( ) ) ; query . METHOD_12 ( METHOD_4 . stream ( ) . map ( IDENT_15 :: getId ) . collect ( java . util . stream . IDENT_17 . toList ( ) ) ) ; } return search ( query ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_11 . size ( ) )