METHOD_0 ( ) { org . openmrs . api . db . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( org . openmrs . api . db . IDENT_0 . class ) ; java . util . List < org . openmrs . IDENT_2 > IDENT_3 = new java . util . ArrayList ( ) ; org . mockito . Mockito . METHOD_1 ( IDENT_1 . METHOD_2 ( STRING_0 , false ) ) . METHOD_3 ( IDENT_3 ) ; org . mockito . Mockito . METHOD_1 ( IDENT_1 . METHOD_2 ( STRING_0 , true ) ) . METHOD_3 ( IDENT_3 ) ; IDENT_4 . METHOD_4 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String ) { java . util . List < org . openmrs . IDENT_2 > IDENT_5 = dao . METHOD_2 ( name , false ) ; if ( IDENT_5 . isEmpty ( ) ) { IDENT_5 = dao . METHOD_2 ( name , true ) ; } if ( ( IDENT_5 . size ( ) ) > 1 ) { throw new org . openmrs . api . METHOD_6 ( name ) ; } return IDENT_5 . isEmpty ( ) ? null : IDENT_5 . get ( 0 ) ; }
org . junit . Assert . assertNull ( IDENT_4 . METHOD_5 ( STRING_0 ) )