METHOD_0 ( ) { final javax . persistence . IDENT_0 < nl . bzk . migratiebrp . init . logging . model . domein . entities . IDENT_1 > query = org . mockito . Mockito . mock ( javax . persistence . IDENT_0 . class ) ; org . mockito . Mockito . when ( em . METHOD_1 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . eq ( nl . bzk . migratiebrp . init . logging . model . domein . entities . IDENT_1 . class ) ) ) . thenReturn ( query ) ; org . mockito . Mockito . when ( query . METHOD_2 ( STRING_0 , STRING_1 ) ) . thenReturn ( query ) ; org . mockito . Mockito . when ( query . METHOD_3 ( ) ) . thenReturn ( java . util . Collections . emptyList ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( java . lang . Long ) { final java . util . List < nl . bzk . migratiebrp . init . logging . model . domein . entities . IDENT_1 > IDENT_2 = em . METHOD_1 ( ( STRING_2 + STRING_3 ) , nl . bzk . migratiebrp . init . logging . model . domein . entities . IDENT_1 . class ) . METHOD_2 ( STRING_0 , IDENT_3 ) . METHOD_3 ( ) ; if ( IDENT_2 . isEmpty ( ) ) { return null ; } else if ( ( IDENT_2 . size ( ) ) == 1 ) { return IDENT_2 . get ( 0 ) ; } else { throw new java . lang . IllegalStateException ( ( STRING_4 + IDENT_3 ) ) ; } }
org . junit . Assert . assertNull ( subject . METHOD_4 ( STRING_1 ) )