String s2 = "value2";
try {
if (!s1.equalsIgnoreCase(s2)) {
- throw new ExternalAuthSystemException("Exception occured..");
+ throw new InvalidRoleException("Exception occured..");
}
- } catch (ExternalAuthSystemException mde) {
+ } catch (InvalidRoleException mde) {
assertEquals(mde.getMessage(),"Exception occured..");
}