source: class PetOrdererTest {
  
  	private static final String PET_ID;
  	private static final String ID;
  	@Mock
  	private IdGenerator idGenerator;
  	@Mock
  	private PetRepository petRepository;
  	@Mock
  	private OrderRepository orderRepository;
  	@InjectMocks
  	private PetOrderer petOrderer;
  
  	@Test
  	void shouldThrowPetNotFoundException_whenPetIsNotFound() {
  
target: 		BDDMockito.given(petRepository.findById(PET_ID)).willReturn(Optional.empty());
  
  		Assertions.assertThrows(PetNotFoundException.class, () -> petOrderer.order(PET_ID));
  	}
  
  }