METHOD_0 ( ) { final java . util . function . IDENT_0 < org . IDENT_1 . client . IDENT_2 . IDENT_3 . widgets . IDENT_4 > consumer = mock ( java . util . function . IDENT_0 . class ) ; IDENT_5 . METHOD_1 ( consumer ) ; final java . lang . String expected = STRING_0 ; final org . IDENT_1 . client . IDENT_2 . IDENT_3 . widgets . IDENT_4 IDENT_6 = mock ( org . IDENT_1 . client . IDENT_2 . IDENT_3 . widgets . IDENT_4 . class ) ; when ( IDENT_6 . format ( STRING_1 ) ) . thenReturn ( expected ) ; IDENT_5 . METHOD_2 ( IDENT_6 ) ; "<AssertPlaceHolder>" ; verify ( consumer ) . accept ( METHOD_3 ( new org . mockito . IDENT_7 < org . IDENT_1 . client . IDENT_2 . IDENT_3 . widgets . IDENT_4 > ( ) { @ org . kie . workbench . common . IDENT_8 . client . IDENT_9 . types . IDENT_10 . IDENT_11 . common . IDENT_12 . time . IDENT_5 . Override public boolean matches ( java . lang . Object IDENT_13 ) { return java . util . IDENT_14 . equals ( IDENT_13 , IDENT_6 ) ; } } ) ) ; } METHOD_2 ( org . IDENT_1 . client . IDENT_2 . IDENT_3 . widgets . IDENT_4 ) { METHOD_4 ( ) . value = IDENT_15 . format ( org . kie . workbench . common . IDENT_8 . client . IDENT_9 . types . IDENT_10 . IDENT_11 . common . IDENT_12 . time . IDENT_5 . IDENT_16 . IDENT_17 ) ; if ( ! ( java . util . IDENT_14 . METHOD_5 ( METHOD_2 ) ) ) { METHOD_2 . accept ( IDENT_15 ) ; } }
org . junit . Assert . assertEquals ( expected , input . value )