### Question:
PetNotFoundException extends RuntimeException { public Long getId() { return id; } PetNotFoundException(String message, Long id); Long getId();  }### Answer:
@Test public void testConstructor() { String message = "id in body is different from in URL"; long pathId = 1L; PetNotFoundException petNotFoundException = new PetNotFoundException(message, pathId); assertThat(petNotFoundException.getMessage(), is(message)); assertThat(petNotFoundException.getId(), is(pathId)); }