METHOD_0 ( ) { com . IDENT_0 . core . server . api . IDENT_1 model = new com . IDENT_0 . core . server . api . impl . METHOD_1 ( ) ; com . IDENT_0 . core . server . api . IDENT_2 . map . IDENT_3 parser = new com . IDENT_0 . core . server . api . IDENT_2 . map . METHOD_2 ( model ) ; java . util . Map < java . lang . String , java . lang . Object > content = new java . util . HashMap ( ) ; content . put ( STRING_0 , STRING_1 ) ; content . put ( STRING_2 , STRING_3 ) ; content . put ( STRING_4 , INT_0 ) ; com . IDENT_0 . core . model . IDENT_4 results = parser . parse ( content ) ; java . util . List < com . IDENT_0 . core . model . IDENT_5 > data = results . METHOD_3 ( ) ; com . IDENT_0 . core . server . api . IDENT_2 . json . IDENT_6 IDENT_7 = new com . IDENT_0 . core . server . api . IDENT_2 . json . METHOD_4 ( model ) ; java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( IDENT_8 . IDENT_9 , STRING_5 ) ; IDENT_7 . init ( props ) ; com . IDENT_0 . core . server . api . IDENT_10 < java . lang . String > builder = IDENT_7 . METHOD_5 ( ) ; java . lang . String json = builder . METHOD_6 ( data ) ; System . out . println ( json ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . util . Collection ) { java . io . IDENT_11 writer = new java . io . StringWriter ( ) ; javax . json . stream . IDENT_8 stream = factory . METHOD_7 ( writer ) ; java . util . IDENT_12 < com . IDENT_0 . core . model . IDENT_5 > IDENT_13 = new java . util . METHOD_8 ( ) ; for ( com . IDENT_0 . core . model . IDENT_5 data : elements ) { METHOD_9 ( IDENT_13 , stream , data ) ; } while ( ! ( IDENT_13 . isEmpty ( ) ) ) { stream . METHOD_10 ( ) ; IDENT_13 . METHOD_11 ( ) ; } stream . METHOD_12 ( ) ; java . lang . String result = writer . toString ( ) ; try { writer . close ( ) ; } catch ( java . io . IOException ex ) { logger . info ( STRING_6 , ex . getMessage ( ) ) ; } return result ; }
org . junit . Assert . assertNotNull ( json )