METHOD_0 ( ) { doReturn ( com . google . common . collect . IDENT_0 . of ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . component ) ) . when ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_4 ) . search ( anyString ( ) , anyString ( ) , anyString ( ) ) ; try { com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_5 . save ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . component ) ; } catch ( final java . lang . RuntimeException e ) { "<AssertPlaceHolder>" ; } doReturn ( com . google . common . collect . IDENT_0 . of ( ) ) . when ( com . IDENT_1 . IDENT_2 . manager . service . IDENT_3 . IDENT_4 ) . search ( anyString ( ) , anyString ( ) , anyString ( ) ) ; } save ( com . IDENT_1 . IDENT_2 . manager . domain . IDENT_6 ) { final java . util . Set < com . IDENT_1 . IDENT_2 . manager . domain . IDENT_6 > components = IDENT_4 . search ( component . METHOD_1 ( ) , component . getName ( ) , component . METHOD_2 ( ) ) ; if ( ! ( components . isEmpty ( ) ) ) { throw new com . IDENT_1 . IDENT_2 . manager . exception . METHOD_3 ( java . lang . String . format ( STRING_0 , component . METHOD_1 ( ) , component . getName ( ) , component . METHOD_2 ( ) ) ) ; } return IDENT_4 . save ( component ) ; }
org . junit . Assert . assertTrue ( ( e instanceof com . IDENT_1 . IDENT_2 . manager . exception . METHOD_3 ) )