METHOD_0 ( ) { java . net . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( java . net . IDENT_0 . class ) ; java . io . IDENT_2 out = org . mockito . Mockito . mock ( java . io . IDENT_2 . class ) ; org . mockito . Mockito . doReturn ( IDENT_1 ) . when ( IDENT_3 ) . METHOD_1 ( ) ; org . mockito . Mockito . doReturn ( out ) . when ( IDENT_1 ) . METHOD_2 ( ) ; org . mockito . Mockito . METHOD_3 ( ) . when ( IDENT_1 ) . close ( ) ; org . mockito . Mockito . METHOD_3 ( ) . when ( out ) . close ( ) ; com . android . IDENT_4 . IDENT_5 device = mock ( com . android . IDENT_4 . IDENT_5 . class ) ; boolean res = IDENT_3 . METHOD_0 ( device ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( com . android . IDENT_4 . IDENT_5 ) { try ( java . net . IDENT_0 IDENT_6 = METHOD_1 ( ) ; java . io . IDENT_2 out = IDENT_6 . METHOD_2 ( ) ) { if ( out != null ) { out . write ( STRING_0 . getBytes ( STRING_1 ) ) ; out . METHOD_4 ( ) ; } return true ; } catch ( java . net . IDENT_7 e ) { com . IDENT_8 . IDENT_9 . core . android . impl . IDENT_10 . LOGGER . error ( e . getMessage ( ) ) ; } catch ( java . io . IOException e ) { com . IDENT_8 . IDENT_9 . core . android . impl . IDENT_10 . LOGGER . error ( e . getMessage ( ) ) ; } return false ; }
org . junit . Assert . assertTrue ( ( res == true ) )