@Test
    void verifyBadRequest() throws Throwable {
        mockMvc.perform(post(TICKETS_RESOURCE_URL)
                .param("unknown-param", "casuser"))
            .andExpect(status().is4xxClientError());
    }
This is {@link UserAuthenticationResourceTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-rest/src/test/java/org/apereo/cas/support/rest/UserAuthenticationResourceTests.java