AdminAuthExtension implements IAdminAuthExtension { public void saveUserExtension(User user) { logger.debug("saveUserExtension"); savePolicyRole(user); }  void setCommonClassDao(CommonClassDao dao); void saveUserExtension(User user); void editUserExtension(User user); void saveUserRoleExtension(Set<Role> roles, User user);  }
@Test public void expectException() { try { extension.saveUserExtension(null); } catch (Exception e) { assertEquals(NullPointerException.class, e.getClass()); } }