METHOD_0 ( ) { doReturn ( com . google . common . collect . IDENT_0 . METHOD_1 ( ) ) . when ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_4 ) . search ( anyString ( ) , anyString ( ) , METHOD_2 ( ) ) ; doReturn ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_5 ) . when ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_4 ) . save ( any ( com . IDENT_1 . IDENT_2 . manager . domain . IDENT_6 . class ) ) ; final com . IDENT_1 . IDENT_2 . manager . domain . IDENT_6 result = com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_7 . METHOD_3 ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_8 , com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , com . IDENT_1 . IDENT_2 . manager . domain . IDENT_6 ) { final java . util . Set < com . IDENT_1 . IDENT_2 . manager . domain . IDENT_6 > IDENT_9 = IDENT_4 . search ( IDENT_8 , IDENT_5 . getName ( ) , null ) ; int IDENT_10 = 0 ; for ( final com . IDENT_1 . IDENT_2 . manager . domain . IDENT_6 c : IDENT_9 ) { if ( ( c . METHOD_4 ( ) ) > IDENT_10 ) { IDENT_10 = c . METHOD_4 ( ) ; } } if ( IDENT_10 > 0 ) { IDENT_5 . METHOD_5 ( ( IDENT_10 + 1 ) ) ; } IDENT_5 . METHOD_6 ( IDENT_8 ) ; com . IDENT_1 . IDENT_2 . manager . utils . IDENT_11 . METHOD_7 ( IDENT_5 ) ; IDENT_5 . METHOD_8 ( ) . METHOD_9 ( ( IDENT_12 ) -> { IDENT_12 . METHOD_10 ( IDENT_13 . read ( IDENT_12 . METHOD_11 ( ) ) ) ; IDENT_12 . METHOD_12 ( IDENT_14 . IDENT_15 ) ; } ) ; IDENT_5 . METHOD_13 ( ) . METHOD_9 ( ( IDENT_12 ) -> { IDENT_12 . METHOD_10 ( IDENT_13 . read ( IDENT_12 . METHOD_11 ( ) ) ) ; IDENT_12 . METHOD_12 ( IDENT_14 . IDENT_16 ) ; } ) ; return IDENT_4 . save ( IDENT_5 ) ; }
org . junit . Assert . assertEquals ( result , com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_5 )