METHOD_0 ( ) { java . util . Date expected = new java . text . METHOD_1 ( STRING_0 ) . parse ( STRING_1 ) ; java . lang . String [ ] IDENT_0 = new java . lang . String [ ] { STRING_2 , STRING_3 } ; for ( int i = 0 ; i < ( IDENT_0 . length ) ; i ++ ) { java . util . Date result = ( ( java . util . Date ) ( org . openmrs . module . IDENT_1 . rest . web . IDENT_2 . convert ( IDENT_0 [ i ] , java . util . Date . class ) ) ) ; "<AssertPlaceHolder>" ; } } convert ( java . lang . Object , java . lang . reflect . Type ) { if ( object == null ) return object ; java . lang . Class < ? > IDENT_3 = ( IDENT_4 instanceof java . lang . Class ) ? ( ( java . lang . Class < ? > ) ( IDENT_4 ) ) : ( ( java . lang . Class < ? > ) ( ( ( java . lang . reflect . IDENT_5 ) ( IDENT_4 ) ) . METHOD_2 ( ) ) ) ; if ( ( java . util . Collection . class . METHOD_3 ( IDENT_3 ) ) || ( IDENT_3 . METHOD_4 ( ) ) ) { if ( ! ( object instanceof java . util . Collection ) ) throw new org . openmrs . module . IDENT_1 . rest . web . response . METHOD_5 ( ( ( ( STRING_4 + ( object . getClass ( ) ) ) + STRING_5 1 ) + IDENT_4 ) , null ) ; if ( IDENT_3 . METHOD_4 ( ) ) { java . lang . Class < ? > IDENT_6 = IDENT_3 . METHOD_6 ( ) ; java . util . Collection input = ( ( java . util . Collection ) ( object ) ) ; java . lang . Object ret = java . lang . reflect . IDENT_7 . newInstance ( IDENT_6 , input . size ( ) ) ; int i = 0 ; for ( java . lang . Object element : ( ( java . util . Collection ) ( object ) ) ) { java . lang . reflect . IDENT_7 . set ( ret , i , org . openmrs . module . IDENT_1 . rest . web . IDENT_2 . convert ( element , IDENT_6 ) ) ; ++ i ; } return ret ; } java . util . Collection ret = null ; if ( java . util . IDENT_8 . class . METHOD_3 ( IDENT_3 ) ) { ret = new java . util . METHOD_7 ( ) ; } else if ( java . util . Set . class . METHOD_3 ( IDENT_3 ) ) { ret = new java . util . HashSet ( ) ; } else if ( java . util . List . class . METHOD_3 ( IDENT_3 ) ) { ret = new java . util . ArrayList ( ) ; } else { throw new org . openmrs . module . IDENT_1 . rest . web . response . METHOD_5 ( ( STRING_6 + IDENT_3 ) , null ) ; } if ( IDENT_4 instanceof java . lang . reflect . IDENT_5 ) { java . lang . reflect . IDENT_5 IDENT_9 = ( ( java . lang . reflect . IDENT_5 ) ( IDENT_4 ) ) ; java . lang . reflect . Type IDENT_6 = IDENT_9 . METHOD_8 ( ) [ 0 ] ; for ( java . lang . Object element : ( ( java . util . Collection ) ( object ) ) ) ret . add ( org . openmrs . module . IDENT_1 . rest . web . IDENT_2 . convert ( element , IDENT_6 ) ) ; } else { ret . addAll ( ( ( java . util . Collection ) ( object ) ) ) ; } return ret ; } if ( IDENT_3 . METHOD_3 ( object . getClass ( ) ) ) return object ; if ( ( IDENT_3 . METHOD_3 ( org . openmrs . module . IDENT_1 . rest . web . IDENT_10 . class ) ) && ( object instanceof java . lang . Double ) ) { return new java . lang . METHOD_9 ( ( ( java . lang . Double ) ( object ) ) ) ; } if ( object instanceof java . lang . String ) { java . lang . String string = ( ( java . lang . String ) ( object ) ) ; org . openmrs . module . IDENT_1 . rest . web . resource . api . IDENT_11 < ? > converter = org . openmrs . module . IDENT_1 . rest . web . IDENT_2 . METHOD_10 ( IDENT_3 ) ; if ( converter != null ) return converter . METHOD_11 ( string ) ; if ( IDENT_3 . METHOD_3 ( java . util . Date . class ) ) { java . lang . IllegalArgumentException IDENT_12 = null ; java . lang . String [ ] IDENT_13 = new java . lang . String [ ] { org . openmrs . module . IDENT_1 . rest . web . IDENT_2 . IDENT_14 , STRING_7 , STRING_8 , STRING_5 0 , STRING_5 2 , STRING_9 , STRING_10 } ; for ( int i = 0 ; i < ( IDENT_13 . length ) ; i ++ ) { try { java . util . Date date = org . joda . time . IDENT_15 . parse ( string , org . joda . time . format . IDENT_16 . METHOD_12 ( IDENT_13 [ i ] ) ) . METHOD_13 ( ) ; return date ; } catch ( java . lang . IllegalArgumentException ex ) { IDENT_12 = ex ; } } throw new org . openmrs . module . IDENT_1 . rest . web . response . METHOD_5 ( STRING_11 , IDENT_12 ) ; } else if ( IDENT_3 . METHOD_3 ( java . util . Locale . class ) ) { return org . openmrs . util . IDENT_17 . METHOD_14 ( object . toString ( ) ) ; } else if ( IDENT_3 . METHOD_15 ( ) ) { return java . lang . IDENT_18 . valueOf ( ( ( java . lang . Class < ? extends java . lang . IDENT_18 > ) ( IDENT_3 ) ) , object . toString ( ) . METHOD_16 ( ) ) ; } else if ( IDENT_3 . METHOD_3 ( java . lang . Class . class ) ) { try { return org . openmrs . api . context . Context . METHOD_17 ( ( ( java . lang . String ) ( object ) ) ) ; } catch ( java . lang . IDENT_19 e ) { throw new org . openmrs . module . IDENT_1 . rest . web . response . METHOD_5 ( ( ( ( STRING_5 + ( object . getClass ( ) ) ) + STRING_5 1 ) + IDENT_4 ) , e ) ; } } try { java . lang . reflect . Method method = IDENT_3 . METHOD_18 ( STRING_12 , java . lang . String . class ) ; if ( ( java . lang . reflect . IDENT_20 . METHOD_19 ( method . METHOD_20 ( ) ) ) && ( IDENT_3 . METHOD_3 ( method . METHOD_21 ( ) ) ) ) { return method . invoke ( null , string ) ; } } catch ( java . lang . Exception ex ) { } } else if ( object instanceof java . util . Map ) { return org . openmrs . module . IDENT_1 . rest . web . IDENT_2 . METHOD_22 ( ( ( java . util . Map < java . lang . String , ? > ) ( object ) ) , IDENT_3 ) ; } if ( ( IDENT_3 . METHOD_3 ( org . openmrs . module . IDENT_1 . rest . web . Double . class ) ) && ( object instanceof java . lang . IDENT_21 ) ) { return ( ( java . lang . IDENT_21 ) ( object ) ) . METHOD_23 ( ) ; } else if ( ( IDENT_3 . METHOD_3 ( org . openmrs . module . IDENT_1 . rest . web . Integer . class ) ) && ( object instanceof java . lang . IDENT_21 ) ) { return ( ( java . lang . IDENT_21 ) ( object ) ) . METHOD_24 ( ) ; } if ( ( IDENT_3 . METHOD_3 ( java . lang . String . class ) ) && ( object instanceof java . lang . Boolean ) ) { return java . lang . String . valueOf ( object ) ; } throw new org . openmrs . module . IDENT_1 . rest . web . response . METHOD_5 ( ( ( ( STRING_13 + ( object . getClass ( ) ) ) + STRING_5 1 ) + IDENT_4 ) , null ) ; }
org . junit . Assert . assertTrue ( ( result != expected ) )