please check the java file attached they throws the exception in case of passing.
please let me know if i am missing something.

 

--
Thanks & Regards

Ravi Pawar