METHOD_0 ( ) { final java . util . Set < com . IDENT_0 . IDENT_1 . manager . domain . IDENT_2 > IDENT_3 = com . google . common . collect . IDENT_4 . METHOD_1 ( ) ; IDENT_3 . add ( com . IDENT_0 . IDENT_1 . manager . service . IDENT_5 . IDENT_6 ) ; doReturn ( IDENT_3 ) . when ( com . IDENT_0 . IDENT_1 . manager . service . IDENT_5 . IDENT_7 ) . search ( anyString ( ) , anyString ( ) , METHOD_2 ( ) ) ; final com . IDENT_0 . IDENT_1 . manager . domain . IDENT_2 result = com . IDENT_0 . IDENT_1 . manager . service . IDENT_5 . IDENT_8 . METHOD_3 ( com . IDENT_0 . IDENT_1 . manager . service . IDENT_5 . IDENT_9 , com . IDENT_0 . IDENT_1 . manager . service . IDENT_5 . IDENT_6 . METHOD_4 ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , int ) { final com . IDENT_0 . IDENT_1 . manager . domain . IDENT_2 IDENT_6 = IDENT_7 . get ( id ) ; if ( ( ( null == IDENT_6 ) || ( ! ( IDENT_6 . METHOD_5 ( ) . equalsIgnoreCase ( IDENT_9 ) ) ) ) || ( IDENT_6 . METHOD_6 ( ) ) ) { throw new com . IDENT_0 . IDENT_1 . manager . exception . METHOD_7 ( java . lang . String . format ( STRING_0 , IDENT_9 , id ) ) ; } return IDENT_6 ; }
org . junit . Assert . assertEquals ( result , com . IDENT_0 . IDENT_1 . manager . service . IDENT_5 . IDENT_6 )