@Test
    void testPrint() {
        PetType petType = new PetType();
        petType.setName("Hamster");
        String petTypeName = petTypeFormatter.print(petType, Locale.ENGLISH);
        assertEquals("Hamster", petTypeName);
    }
Test class for {@link PetTypeFormatter}

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