METHOD_0 ( ) { final java . util . UUID IDENT_0 = java . util . UUID . METHOD_1 ( ) ; final org . talend . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 IDENT_5 = new org . talend . IDENT_1 . IDENT_2 . IDENT_3 . METHOD_2 ( ) ; final org . talend . IDENT_1 . IDENT_3 . store . IDENT_6 repository = mock ( org . talend . IDENT_1 . IDENT_3 . store . IDENT_6 . class ) ; when ( repository . exist ( eq ( org . talend . IDENT_1 . api . IDENT_3 . IDENT_7 . class ) , any ( ) ) ) . thenReturn ( false , true ) ; final org . talend . IDENT_1 . api . IDENT_3 . IDENT_7 IDENT_3 = new org . talend . IDENT_1 . api . IDENT_3 . METHOD_3 ( ) ; when ( repository . list ( eq ( org . talend . IDENT_1 . api . IDENT_3 . METHOD_3 . class ) ) ) . thenReturn ( java . util . stream . IDENT_8 . of ( IDENT_3 ) ) ; final org . talend . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . Result result = IDENT_5 . METHOD_4 ( repository , IDENT_0 ) ; "<AssertPlaceHolder>" ; verify ( repository , METHOD_5 ( ) ) . add ( org . mockito . Matchers . < java . util . Collection < org . talend . IDENT_1 . api . IDENT_3 . IDENT_9 > > any ( ) ) ; } METHOD_4 ( org . talend . IDENT_1 . IDENT_3 . store . IDENT_6 , java . util . UUID ) { if ( repository . exist ( org . talend . IDENT_1 . api . IDENT_3 . METHOD_3 . class , METHOD_6 ( ) ) ) { org . talend . IDENT_1 . IDENT_2 . IDENT_3 . METHOD_2 . LOGGER . info ( STRING_0 ) ; METHOD_7 ( repository ) ; return Result . IDENT_10 ; } final java . util . concurrent . atomic . IDENT_11 IDENT_12 = new java . util . concurrent . atomic . METHOD_8 ( false ) ; repository . list ( org . talend . IDENT_1 . api . IDENT_3 . METHOD_3 . class ) . filter ( ( p ) -> ! ( IDENT_12 . get ( ) ) ) . METHOD_9 ( ( p ) -> { if ( repository . exist ( . class , METHOD_6 ( ) ) ) { org . talend . IDENT_1 . IDENT_2 . IDENT_3 . METHOD_2 . LOGGER . info ( STRING_1 ) ; METHOD_7 ( repository ) ; IDENT_12 . set ( true ) ; return ; } final Collection < org . talend . IDENT_1 . api . IDENT_3 . IDENT_13 > IDENT_14 = p . METHOD_10 ( ) . stream ( ) . filter ( ( s ) -> ! ( java . util . IDENT_15 . equals ( s , IDENT_9 . IDENT_16 ) ) ) . METHOD_11 ( ( s ) -> s . METHOD_12 ( IDENT_5 . toString ( ) ) ) . collect ( java . util . stream . IDENT_17 . toList ( ) ) ; repository . add ( IDENT_14 ) ; } ) ; return IDENT_12 . get ( ) ? Result . IDENT_10 : Result . IDENT_18 ; }
org . junit . Assert . assertEquals ( IDENT_4 . Result . IDENT_10 , result )