METHOD_0 ( ) { IDENT_0 . METHOD_1 ( ) . IDENT_1 . IDENT_2 . setValue ( STRING_0 ) ; com . IDENT_3 . client . IDENT_4 client = org . mockito . Mockito . mock ( com . IDENT_3 . client . IDENT_4 . class ) ; org . talend . components . api . container . IDENT_5 container = org . mockito . Mockito . mock ( org . talend . components . api . container . IDENT_5 . class ) ; org . mockito . Mockito . when ( container . METHOD_2 ( STRING_0 , IDENT_6 . IDENT_7 ) ) . thenReturn ( client ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( container , org . mockito . Mockito . METHOD_3 ( ) ) . METHOD_2 ( STRING_0 , IDENT_6 . IDENT_7 ) ; } validate ( org . talend . components . api . container . IDENT_5 ) { java . io . File file = new java . io . File ( METHOD_4 ( ) ) ; org . talend . IDENT_8 . properties . IDENT_9 result ; if ( file . exists ( ) ) { result = org . talend . IDENT_8 . properties . IDENT_9 . IDENT_10 ; } else { result = new org . talend . IDENT_8 . properties . METHOD_5 ( org . talend . IDENT_8 . properties . METHOD_5 . Result . IDENT_11 , METHOD_6 ( STRING_1 , METHOD_4 ( ) ) ) ; } return result ; }
org . junit . Assert . assertEquals ( Result . IDENT_10 , IDENT_0 . validate ( container ) . getStatus ( ) )