METHOD_0 ( ) { IDENT_0 . IDENT_1 . server . common . device . IDENT_2 IDENT_3 = new IDENT_0 . IDENT_1 . server . common . device . METHOD_1 ( 1L , STRING_0 , STRING_1 ) ; IDENT_4 . put ( IDENT_3 . getId ( ) , IDENT_3 ) ; long IDENT_5 = IDENT_4 . METHOD_0 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String ) { java . lang . Long IDENT_5 ; if ( ( IDENT_6 == null ) || ( IDENT_6 . equalsIgnoreCase ( "" ) ) ) { throw new java . lang . IllegalArgumentException ( STRING_2 ) ; } net . sf . IDENT_7 . search . IDENT_8 results = null ; try { net . sf . IDENT_7 . search . IDENT_9 < java . lang . String > IDENT_10 = METHOD_2 ( ) . METHOD_3 ( STRING_3 ) ; net . sf . IDENT_7 . search . Query query = METHOD_2 ( ) . METHOD_4 ( ) ; results = query . METHOD_5 ( ) . METHOD_6 ( IDENT_10 . eq ( IDENT_6 ) ) . METHOD_7 ( 1 ) . execute ( ) ; if ( ( results . size ( ) ) == 0 ) { throw new IDENT_0 . IDENT_1 . server . cache . exception . METHOD_8 ( ( ( STRING_4 + IDENT_6 ) + STRING_5 ) ) ; } IDENT_5 = ( ( long ) ( results . METHOD_9 ( ) . get ( 0 ) . getKey ( ) ) ) ; } finally { if ( results != null ) { results . METHOD_10 ( ) ; } } return IDENT_5 ; }
org . junit . Assert . assertEquals ( 1 , IDENT_5 )