@Override
    public ServletRegistration.Dynamic addServlet(final String servletName, final Servlet servlet) {
        return mock(ServletRegistration.Dynamic.class);
    }
This is {@link MockServletContext}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/MockServletContext.java