@Test
    void testShowVetListHtml() throws Exception {
        mockMvc.perform(get("/vets"))
            .andExpect(status().isOk())
            .andExpect(model().attributeExists("vets"))
            .andExpect(view().name("vets/vetList"));
    }
Test class for the {@link VetController}
src/test/java/org/springframework/samples/petclinic/web/VetControllerTests.java