@Test
    void verifyServiceCreationSuccessfullyById() {
        val request = new MockHttpServletRequest();
        RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(request, new MockHttpServletResponse()));
        val service = serviceFactory.createService("testservice");
        assertNotNull(service);
    }
Test cases for {@link WebApplicationServiceFactory}.

@author Misagh Moayyed
@since 4.2
core/cas-server-core-services/src/test/java/org/apereo/cas/authentication/principal/WebApplicationServiceFactoryTests.java