METHOD_0 ( ) { io . IDENT_0 . management . model . IDENT_1 item = mock ( io . IDENT_0 . management . model . IDENT_1 . class ) ; when ( IDENT_2 . search ( any ( ) ) ) . thenReturn ( java . util . Collections . singletonList ( item ) ) ; io . IDENT_0 . management . model . api . IDENT_3 api = mock ( io . IDENT_0 . management . model . api . IDENT_3 . class ) ; when ( api . getId ( ) ) . thenReturn ( io . IDENT_0 . management . service . IDENT_4 . IDENT_5 ) ; boolean IDENT_6 = IDENT_7 . isValid ( api ) ; "<AssertPlaceHolder>" ; } isValid ( io . IDENT_0 . management . model . api . IDENT_3 ) { return ( ( api . METHOD_1 ( ) ) != null ) && ( ! ( api . METHOD_1 ( ) . isEmpty ( ) ) ) ; }
org . junit . Assert . assertTrue ( IDENT_6 )