METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . sql . impl . parser . List < org . IDENT_0 . IDENT_1 . sql . impl . parser . Collection < java . lang . String > > input = org . IDENT_0 . IDENT_1 . sql . impl . parser . Collections . singletonList ( org . IDENT_0 . IDENT_1 . sql . impl . parser . Arrays . asList ( "1" , "2" ) ) ; org . IDENT_0 . IDENT_1 . sql . impl . parser . List < org . IDENT_0 . IDENT_1 . sql . impl . parser . List < java . lang . String > > output = METHOD_1 ( input ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( org . IDENT_0 . IDENT_1 . sql . impl . parser . List ) { if ( ( IDENT_2 == null ) || ( ( IDENT_2 . size ( ) ) == 0 ) ) { return org . IDENT_0 . IDENT_1 . sql . impl . parser . Collections . emptyList ( ) ; } if ( ( IDENT_2 . size ( ) ) == 1 ) { return IDENT_2 . get ( 0 ) . stream ( ) . map ( Collections :: singletonList ) . collect ( java . util . stream . IDENT_3 . toList ( ) ) ; } if ( ( IDENT_2 . size ( ) ) == 2 ) { org . IDENT_0 . IDENT_1 . sql . impl . parser . List < org . IDENT_0 . IDENT_1 . sql . impl . parser . List < T > > IDENT_4 = new org . IDENT_0 . IDENT_1 . sql . impl . parser . ArrayList ( ) ; org . IDENT_0 . IDENT_1 . sql . impl . parser . IDENT_5 . METHOD_1 ( new org . IDENT_0 . IDENT_1 . sql . impl . parser . ArrayList ( IDENT_2 . get ( 0 ) ) , new org . IDENT_0 . IDENT_1 . sql . impl . parser . ArrayList ( IDENT_2 . get ( 1 ) ) , Collections :: singletonList , ( IDENT_6 , list ) -> IDENT_4 . add ( list ) ) ; return IDENT_4 ; } org . IDENT_0 . IDENT_1 . sql . impl . parser . List < T > IDENT_7 = new org . IDENT_0 . IDENT_1 . sql . impl . parser . ArrayList ( IDENT_2 . get ( 0 ) ) ; org . IDENT_0 . IDENT_1 . sql . impl . parser . List < org . IDENT_0 . IDENT_1 . sql . impl . parser . List < T > > IDENT_8 = org . IDENT_0 . IDENT_1 . sql . impl . parser . IDENT_5 . METHOD_1 ( IDENT_2 . METHOD_2 ( 1 , IDENT_2 . size ( ) ) ) ; org . IDENT_0 . IDENT_1 . sql . impl . parser . List < org . IDENT_0 . IDENT_1 . sql . impl . parser . List < T > > ret = new org . IDENT_0 . IDENT_1 . sql . impl . parser . ArrayList ( ) ; IDENT_7 . METHOD_3 ( ( entry ) -> IDENT_8 . METHOD_3 ( ( list ) -> ret . add ( new ArrayList < org . IDENT_0 . IDENT_1 . sql . impl . parser . T > ( ) { { add ( entry ) ; addAll ( list ) ; } } ) ) ) ; return ret ; }
org . junit . Assert . assertThat ( output , equalTo ( org . IDENT_0 . IDENT_1 . sql . impl . parser . Arrays . asList ( org . IDENT_0 . IDENT_1 . sql . impl . parser . Collections . singletonList ( "1" ) , org . IDENT_0 . IDENT_1 . sql . impl . parser . Collections . singletonList ( "2" ) ) ) )