@Test
    void testInitFindForm() throws Exception {
        mockMvc.perform(get("/owners/find"))
            .andExpect(status().isOk())
            .andExpect(model().attributeExists("owner"))
            .andExpect(view().name("owners/findOwners"));
    }
Test class for {@link OwnerController}

@author Colin But
src/test/java/org/springframework/samples/petclinic/web/OwnerControllerTests.java