How to check does a method throw an exception or not in Junit  in @Test field ??
for example:
@Test
public void testGenerateInvalidStudentData() {
    //TODO: check does studentIdGenerator.generate(null,2); 
    //      throw IllegalArgumentException or no.
}
 
     
    