METHOD_0 ( ) { final com . spotify . IDENT_0 . common . IDENT_1 . IDENT_2 job = com . spotify . IDENT_0 . common . IDENT_1 . IDENT_2 . METHOD_1 ( ) . setName ( "foo" ) . METHOD_2 ( "1" ) . METHOD_3 ( STRING_0 ) . METHOD_4 ( com . google . common . collect . IDENT_3 . of ( STRING_1 , STRING_2 ) ) . build ( ) ; "<AssertPlaceHolder>" ; } validate ( com . spotify . IDENT_0 . common . IDENT_1 . IDENT_2 ) { final java . util . Set < java . lang . String > errors = com . google . common . collect . IDENT_4 . METHOD_5 ( ) ; errors . addAll ( METHOD_6 ( job ) ) ; errors . addAll ( METHOD_7 ( job . METHOD_8 ( ) ) ) ; errors . addAll ( METHOD_9 ( job . METHOD_10 ( ) ) ) ; final java . util . Set < java . lang . Integer > IDENT_5 = com . google . common . collect . IDENT_4 . METHOD_5 ( ) ; for ( final com . spotify . IDENT_0 . common . IDENT_1 . IDENT_6 mapping : job . METHOD_11 ( ) . values ( ) ) { final java . lang . Integer IDENT_7 = mapping . METHOD_12 ( ) ; if ( ( IDENT_5 . contains ( IDENT_7 ) ) && ( IDENT_7 != null ) ) { errors . add ( java . lang . String . format ( STRING_3 9 , IDENT_7 ) ) ; } IDENT_5 . add ( IDENT_7 ) ; } for ( final Map . Entry < java . lang . String , com . spotify . IDENT_0 . common . IDENT_1 . IDENT_6 > entry : job . METHOD_11 ( ) . entrySet ( ) ) { final java . lang . String name = entry . getKey ( ) ; final com . spotify . IDENT_0 . common . IDENT_1 . IDENT_6 mapping = entry . getValue ( ) ; if ( ! ( com . spotify . IDENT_0 . common . IDENT_8 . IDENT_9 . matcher ( mapping . METHOD_13 ( ) ) . matches ( ) ) ) { errors . add ( java . lang . String . format ( STRING_3 6 , mapping . METHOD_13 ( ) ) ) ; } if ( ! ( METHOD_14 ( mapping . METHOD_15 ( ) ) ) ) { errors . add ( java . lang . String . format ( STRING_4 , mapping . METHOD_15 ( ) ) ) ; } if ( ( ( mapping . METHOD_12 ( ) ) != null ) && ( ! ( METHOD_14 ( mapping . METHOD_12 ( ) ) ) ) ) { errors . add ( java . lang . String . format ( STRING_5 , mapping . METHOD_12 ( ) ) ) ; } if ( ! ( com . spotify . IDENT_0 . common . IDENT_8 . IDENT_10 . matcher ( name ) . matches ( ) ) ) { errors . add ( java . lang . String . format ( STRING_6 , name ) ) ; } } for ( final com . spotify . IDENT_0 . common . IDENT_1 . IDENT_11 IDENT_12 : job . METHOD_16 ( ) . METHOD_17 ( ) ) { final com . spotify . IDENT_0 . common . IDENT_1 . IDENT_13 IDENT_14 = job . METHOD_16 ( ) . get ( IDENT_12 ) ; if ( ( IDENT_14 == null ) || ( ( IDENT_14 . METHOD_11 ( ) ) == null ) ) { errors . add ( java . lang . String . format ( STRING_3 3 , IDENT_12 . getName ( ) ) ) ; continue ; } for ( final java . lang . String IDENT_15 : IDENT_14 . METHOD_11 ( ) . METHOD_17 ( ) ) { if ( ! ( job . METHOD_11 ( ) . containsKey ( IDENT_15 ) ) ) { errors . add ( java . lang . String . format ( STRING_3 4 , IDENT_12 , IDENT_15 ) ) ; } if ( ! ( com . spotify . IDENT_0 . common . IDENT_8 . IDENT_16 . matcher ( IDENT_12 . getName ( ) ) . matches ( ) ) ) { errors . add ( java . lang . String . format ( STRING_7 , IDENT_12 . getName ( ) ) ) ; } } } for ( final Map . Entry < java . lang . String , java . lang . String > entry : job . METHOD_18 ( ) . entrySet ( ) ) { final java . lang . String path = entry . getKey ( ) ; final java . lang . String source = entry . getValue ( ) ; if ( ! ( path . startsWith ( STRING_3 8 ) ) ) { errors . add ( ( STRING_8 + path ) ) ; continue ; } if ( ( source . contains ( STRING_3 8 ) ) && ( ! ( source . startsWith ( STRING_3 8 ) ) ) ) { errors . add ( ( STRING_3 1 + source ) ) ; continue ; } final java . lang . String [ ] IDENT_17 = path . split ( STRING_3 0 , 3 ) ; if ( ( ( ( path . isEmpty ( ) ) || ( path . equals ( STRING_3 8 ) ) ) || ( ( IDENT_17 . length ) > 2 ) ) || ( ( ( IDENT_17 . length ) > 1 ) && ( IDENT_17 [ 1 ] . isEmpty ( ) ) ) ) { errors . add ( java . lang . String . format ( STRING_9 , path ) ) ; } } final java . util . Date IDENT_18 = job . METHOD_19 ( ) ; final java . util . Date now = new java . util . Date ( ) ; if ( ( IDENT_18 != null ) && ( IDENT_18 . METHOD_20 ( now ) ) ) { errors . add ( ( ( ( STRING_10 + IDENT_18 ) + STRING_3 2 ) + now ) ) ; } errors . addAll ( METHOD_21 ( job ) ) ; errors . addAll ( METHOD_22 ( job ) ) ; if ( IDENT_19 ) { errors . addAll ( METHOD_23 ( job ) ) ; } for ( final java . lang . String IDENT_20 : job . METHOD_24 ( ) . METHOD_17 ( ) ) { if ( ! ( IDENT_20 . startsWith ( STRING_3 8 ) ) ) { errors . add ( ( STRING_11 + IDENT_20 ) ) ; continue ; } } final java . util . Set < java . lang . String > IDENT_21 = com . google . common . collect . IDENT_4 . METHOD_5 ( ) ; for ( java . lang . String s : job . METHOD_18 ( ) . METHOD_17 ( ) ) { IDENT_21 . add ( s . split ( STRING_3 0 , 2 ) [ 0 ] ) ; } for ( final java . lang . String IDENT_20 : job . METHOD_24 ( ) . METHOD_17 ( ) ) { if ( IDENT_21 . contains ( IDENT_20 ) ) { errors . add ( java . lang . String . format ( STRING_3 7 , IDENT_20 ) ) ; } } errors . addAll ( METHOD_25 ( job ) ) ; return errors ; }
org . junit . Assert . assertEquals ( 1 , validator . validate ( job ) . size ( ) )