@Test public void testUpdatePetWithForm() throws Exception { Pet pet = createRandomPet(); pet.setName("frank"); api.addPet(pet); Pet fetched = api.getPetById(pet.getId()); api.updatePetWithForm(fetched.getId(), "furt", null); Pet updated = api.getPetById(fetched.getId()); assertEquals(updated.getName(), "furt"); }