METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . util . Date expect = new java . text . METHOD_1 ( STRING_0 ) . parse ( STRING_1 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { if ( string == null ) { throw new com . IDENT_0 . IDENT_1 . util . METHOD_3 ( STRING_2 ) ; } string = string . trim ( ) ; try { return new java . util . Date ( com . IDENT_0 . IDENT_1 . util . IDENT_2 . IDENT_3 . get ( format ) . METHOD_4 ( string ) ) ; } catch ( java . lang . IllegalArgumentException error ) { } if ( format . contains ( STRING_3 ) ) { try { return new java . text . METHOD_1 ( format ) . parse ( string ) ; } catch ( java . text . IDENT_4 error ) { } } throw new com . IDENT_0 . IDENT_1 . util . METHOD_3 ( java . lang . String . format ( STRING_4 , string , format ) ) ; }
org . junit . Assert . assertEquals ( expect , com . IDENT_0 . IDENT_1 . util . IDENT_2 . METHOD_2 ( STRING_1 , STRING_0 ) )