METHOD_0 ( ) { java . lang . String id = STRING_0 ; when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_0 . METHOD_2 ( id ) ) . thenReturn ( IDENT_2 ) ; when ( IDENT_3 . METHOD_3 ( java . util . Collections . singletonList ( IDENT_2 ) ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_3 . METHOD_4 ( IDENT_1 , IDENT_4 ) ) . thenReturn ( IDENT_5 ) ; org . codice . ddf . catalog . ui . query . monitor . impl . IDENT_6 IDENT_7 = new org . codice . ddf . catalog . ui . query . monitor . impl . METHOD_5 ( IDENT_3 , IDENT_0 ) ; org . opengis . filter . IDENT_8 filter = IDENT_7 . METHOD_6 ( java . util . Collections . METHOD_7 ( id ) ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . lang . String ) { java . lang . String IDENT_9 = ( ( ( IDENT_10 ) == null ) || ( org . apache . IDENT_11 . util . IDENT_12 . isEmpty ( IDENT_10 ) ) ) ? java . lang . String . format ( STRING_1 , IDENT_13 ) : IDENT_10 . stream ( ) . map ( ( IDENT_14 ) -> java . lang . String . format ( STRING_2 , IDENT_13 , IDENT_14 ) ) . collect ( java . util . stream . IDENT_15 . METHOD_8 ( ) ) ; if ( ( ( IDENT_16 ) == null ) || ( org . apache . IDENT_11 . util . IDENT_12 . isEmpty ( IDENT_16 ) ) ) { return java . lang . String . format ( STRING_3 , IDENT_9 ) ; } else { java . lang . String IDENT_17 = IDENT_16 . stream ( ) . map ( ( IDENT_14 ) -> java . lang . String . format ( STRING_4 , IDENT_13 , IDENT_14 ) ) . collect ( java . util . stream . IDENT_15 . METHOD_8 ( ) ) ; return java . lang . String . format ( STRING_5 , IDENT_9 , IDENT_17 ) ; } }
org . junit . Assert . assertThat ( filter , org . hamcrest . Matchers . is ( IDENT_5 ) )