METHOD_0 ( ) { "<AssertPlaceHolder>" ; } transform ( java . lang . String ) { java . util . Date date = null ; if ( ( input != null ) && ( ! ( input . trim ( ) . isEmpty ( ) ) ) ) { if ( ( format ) == null ) { for ( java . lang . String IDENT_0 : io . IDENT_1 . mapping . IDENT_2 . IDENT_3 . IDENT_4 ) { try { date = new java . text . METHOD_1 ( IDENT_0 ) . parse ( input ) ; break ; } catch ( java . text . IDENT_5 IDENT_6 ) { date = null ; } } } else { try { date = new java . text . METHOD_1 ( format ) . parse ( input ) ; } catch ( java . text . IDENT_5 IDENT_6 ) { date = null ; } } } return date != null ? date . getTime ( ) : null ; }
org . junit . Assert . assertEquals ( expected , IDENT_2 . transform ( input ) )