METHOD_0 ( ) { IDENT_0 . IDENT_1 = org . mockito . Mockito . mock ( org . sagebionetworks . repo . util . IDENT_2 . class ) ; when ( IDENT_0 . IDENT_1 . METHOD_1 ( any ( java . util . concurrent . IDENT_3 . class ) , any ( org . sagebionetworks . repo . manager . file . IDENT_4 . Long . class ) ) ) . METHOD_2 ( new org . sagebionetworks . repo . util . IDENT_2 . METHOD_3 ( ) ) ; org . sagebionetworks . repo . model . file . IDENT_5 IDENT_6 = IDENT_0 . METHOD_4 ( IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . sagebionetworks . repo . model . file . IDENT_8 ) { if ( metadata == null ) throw new java . lang . IllegalArgumentException ( STRING_0 ) ; if ( ( metadata . METHOD_5 ( ) ) == null ) throw new java . lang . IllegalArgumentException ( STRING_1 ) ; if ( ( metadata . METHOD_6 ( ) ) == null ) throw new java . lang . IllegalArgumentException ( STRING_2 ) ; if ( ( metadata . METHOD_6 ( ) ) == 0L ) { org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_9 . log . info ( STRING_3 ) ; return null ; } if ( org . apache . commons . lang3 . StringUtils . isEmpty ( metadata . METHOD_5 ( ) ) ) { org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_9 . log . info ( STRING_4 ) ; return null ; } org . apache . http . entity . IDENT_10 IDENT_11 = org . apache . http . entity . IDENT_10 . parse ( metadata . METHOD_5 ( ) ) ; java . lang . String extension = org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_12 . METHOD_7 ( metadata . METHOD_8 ( ) ) ; final org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_13 generator = METHOD_9 ( IDENT_11 . METHOD_10 ( ) , extension ) ; if ( generator == null ) { org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_9 . log . info ( ( STRING_5 + ( metadata . METHOD_5 ( ) ) ) ) ; return null ; } java . lang . String IDENT_14 = org . apache . http . entity . IDENT_10 . parse ( metadata . METHOD_5 ( ) ) . METHOD_10 ( ) ; long IDENT_15 = generator . METHOD_11 ( IDENT_14 , metadata . METHOD_6 ( ) ) ; if ( IDENT_15 > ( IDENT_16 ) ) { org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_9 . log . info ( java . lang . String . format ( STRING_6 , IDENT_15 , IDENT_16 , metadata . toString ( ) ) ) ; return null ; } try { return IDENT_1 . METHOD_1 ( new java . util . concurrent . IDENT_3 < org . sagebionetworks . repo . model . file . IDENT_5 > ( ) { @ org . sagebionetworks . repo . manager . file . IDENT_4 . Override public org . sagebionetworks . repo . model . file . IDENT_5 call ( ) { return METHOD_4 ( generator , metadata ) ; } } , IDENT_15 ) ; } catch ( org . sagebionetworks . repo . web . IDENT_17 IDENT_18 ) { org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_9 . log . info ( ( STRING_7 + metadata ) ) ; throw IDENT_18 ; } catch ( org . sagebionetworks . repo . util . IDENT_2 . METHOD_3 e ) { org . sagebionetworks . repo . manager . file . IDENT_4 . IDENT_9 . log . info ( java . lang . String . format ( STRING_6 , IDENT_15 , IDENT_16 , metadata . toString ( ) ) ) ; return null ; } }
org . junit . Assert . assertTrue ( ( IDENT_6 == null ) )