@Test
    void shouldParse() throws ParseException {
        Mockito.when(clinicService.findPetTypes()).thenReturn(makePetTypes());
        PetType petType = petTypeFormatter.parse("Bird", Locale.ENGLISH);
        assertEquals("Bird", petType.getName());
    }
Test class for {@link PetTypeFormatter}

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