METHOD_0 ( ) { java . util . Map < java . lang . String , java . lang . String > IDENT_0 = java . util . Collections . METHOD_1 ( ) ; java . util . List < java . util . Map < java . lang . String , java . lang . String > > IDENT_1 = new java . util . ArrayList ( ) { { java . util . Map < java . lang . String , java . lang . String > IDENT_2 = new java . util . HashMap ( ) { { put ( STRING_0 , "2" ) ; } } ; add ( IDENT_2 ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_3 = new java . util . HashMap ( ) { { put ( STRING_0 , "1" ) ; } } ; add ( IDENT_3 ) ; } } ; com . liferay . IDENT_4 . data . mapping . io . IDENT_5 . IDENT_6 . Builder builder = IDENT_6 . Builder . METHOD_2 ( IDENT_0 , IDENT_1 ) ; com . liferay . IDENT_4 . data . mapping . io . IDENT_5 . IDENT_6 IDENT_7 = builder . build ( ) ; com . liferay . IDENT_4 . data . mapping . io . internal . IDENT_5 . IDENT_8 IDENT_9 = mock ( com . liferay . IDENT_4 . data . mapping . io . internal . IDENT_5 . IDENT_8 . class ) ; java . io . ByteArrayOutputStream IDENT_10 = mock ( java . io . ByteArrayOutputStream . class ) ; when ( IDENT_9 . METHOD_3 ( ) ) . thenReturn ( IDENT_10 ) ; when ( IDENT_10 . toByteArray ( ) ) . thenReturn ( new byte [ ] { 1 , 2 , 3 } ) ; org . apache . poi . IDENT_11 . IDENT_12 . IDENT_13 IDENT_14 = mock ( org . apache . poi . IDENT_11 . IDENT_12 . IDENT_13 . class ) ; when ( IDENT_9 . METHOD_4 ( ) ) . thenReturn ( IDENT_14 ) ; org . mockito . Mockito . METHOD_5 ( ) . when ( IDENT_14 ) . write ( IDENT_10 ) ; when ( IDENT_9 . write ( IDENT_7 ) ) . METHOD_6 ( ) ; com . liferay . IDENT_4 . data . mapping . io . IDENT_5 . IDENT_15 IDENT_16 = IDENT_9 . write ( builder . build ( ) ) ; "<AssertPlaceHolder>" ; org . mockito . IDENT_17 IDENT_18 = org . mockito . Mockito . METHOD_7 ( IDENT_9 , IDENT_14 , IDENT_10 ) ; METHOD_7 . verify ( IDENT_14 , org . mockito . Mockito . times ( 1 ) ) . METHOD_8 ( ) ; METHOD_7 . verify ( IDENT_9 , org . mockito . Mockito . times ( 1 ) ) . METHOD_9 ( org . mockito . Matchers . any ( org . apache . poi . IDENT_11 . IDENT_12 . IDENT_13 . class ) , org . mockito . Matchers . METHOD_10 ( ) , org . mockito . Matchers . anyString ( ) , org . mockito . Matchers . METHOD_11 ( ) ) ; METHOD_7 . verify ( IDENT_9 , org . mockito . Mockito . times ( 1 ) ) . METHOD_12 ( org . mockito . Matchers . METHOD_13 ( ) , org . mockito . Matchers . any ( org . apache . poi . IDENT_11 . IDENT_12 . IDENT_19 . class ) , org . mockito . Matchers . METHOD_14 ( ) , org . mockito . Matchers . any ( org . apache . poi . IDENT_11 . IDENT_12 . IDENT_20 . class ) ) ; METHOD_7 . verify ( IDENT_9 , org . mockito . Mockito . times ( 1 ) ) . METHOD_9 ( org . mockito . Matchers . any ( org . apache . poi . IDENT_11 . IDENT_12 . IDENT_13 . class ) , org . mockito . Matchers . METHOD_10 ( ) , org . mockito . Matchers . anyString ( ) , org . mockito . Matchers . METHOD_11 ( ) ) ; METHOD_7 . verify ( IDENT_9 , org . mockito . Mockito . times ( 2 ) ) . METHOD_12 ( org . mockito . Matchers . METHOD_13 ( ) , org . mockito . Matchers . any ( org . apache . poi . IDENT_11 . IDENT_12 . IDENT_19 . class ) , org . mockito . Matchers . METHOD_14 ( ) , org . mockito . Matchers . any ( org . apache . poi . IDENT_11 . IDENT_12 . IDENT_20 . class ) ) ; METHOD_7 . verify ( IDENT_14 , org . mockito . Mockito . times ( 1 ) ) . write ( IDENT_10 ) ; METHOD_7 . verify ( IDENT_10 , org . mockito . Mockito . times ( 1 ) ) . toByteArray ( ) ; } METHOD_15 ( ) { return content ; }
org . junit . Assert . assertArrayEquals ( new byte [ ] { 1 , 2 , 3 } , IDENT_16 . METHOD_15 ( ) )