METHOD_0 ( ) { final com . IDENT_0 . model . time . IDENT_1 IDENT_2 = com . IDENT_0 . model . time . IDENT_1 . METHOD_1 ( parser . parse ( STRING_0 ) ) ; final java . time . IDENT_3 now = java . time . IDENT_3 . parse ( STRING_1 ) ; final java . util . Optional < java . time . IDENT_3 > IDENT_4 = IDENT_2 . METHOD_2 ( now ) ; if ( METHOD_2 . METHOD_3 ( ) ) { final java . time . IDENT_3 IDENT_5 = java . time . IDENT_3 . parse ( STRING_2 ) ; "<AssertPlaceHolder>" ; } else { org . junit . Assert . fail ( STRING_3 ) ; } } parse ( java . lang . String ) { com . IDENT_0 . utils . IDENT_6 . METHOD_4 ( expression , STRING_4 ) ; final java . lang . String IDENT_7 = expression . replaceAll ( STRING_5 , " " ) . trim ( ) ; if ( com . IDENT_0 . utils . StringUtils . isEmpty ( IDENT_7 ) ) { throw new java . lang . IllegalArgumentException ( STRING_6 ) ; } if ( expression . contains ( STRING_7 ) ) { java . util . List < java . lang . String > IDENT_8 = new java . util . ArrayList ( ) ; int IDENT_9 = java . util . Arrays . stream ( expression . split ( STRING_5 ) ) . METHOD_5 ( ( s ) -> s . split ( STRING_8 ) . length ) . max ( ) . METHOD_6 ( ( ) -> 0 ) ; for ( int j = 0 ; j < IDENT_9 ; j ++ ) { java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; for ( java . lang . String s : expression . split ( STRING_5 ) ) { if ( s . contains ( STRING_7 ) ) { builder . append ( java . lang . String . format ( STRING_9 , s . split ( STRING_8 ) [ j ] ) ) ; } else { builder . append ( java . lang . String . format ( STRING_9 , s ) ) ; } } IDENT_8 . add ( builder . toString ( ) . trim ( ) ) ; } return new com . IDENT_0 . model . METHOD_7 ( IDENT_8 . stream ( ) . map ( ( c ) -> parse ( c ) ) . collect ( java . util . stream . IDENT_10 . toList ( ) ) ) ; } else { final java . lang . String [ ] IDENT_11 = IDENT_7 . METHOD_8 ( ) . split ( " " ) ; final int IDENT_12 = IDENT_11 . length ; java . lang . String IDENT_13 = java . util . Arrays . stream ( IDENT_11 ) . filter ( ( x ) -> x . METHOD_9 ( STRING_10 ) ) . METHOD_10 ( ) . METHOD_11 ( null ) ; if ( IDENT_13 != null ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_7 0 , IDENT_13 ) ) ; } final java . util . List < com . IDENT_0 . parser . IDENT_14 > fields = expressions . get ( IDENT_12 ) ; if ( fields == null ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_11 , IDENT_12 , expressions . METHOD_12 ( ) ) ) ; } try { final int size = fields . size ( ) ; final java . util . List < com . IDENT_0 . model . field . IDENT_15 > results = new java . util . ArrayList ( ( size + 1 ) ) ; for ( int j = 0 ; j < size ; j ++ ) { results . add ( fields . get ( j ) . parse ( IDENT_11 [ j ] ) ) ; } return new com . IDENT_0 . model . METHOD_13 ( IDENT_16 , results ) . validate ( ) ; } catch ( final java . lang . IllegalArgumentException e ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( STRING_12 , expression , e . getMessage ( ) ) , e ) ; } } }
org . junit . Assert . assertEquals ( IDENT_5 , METHOD_2 . get ( ) )