@Test
void shouldListData() {

    PetEntity petEntity = new PetEntity();
    petEntity.setName("browny");
    petEntity.setOwner("dodong");
    when(queryService.getTypedQuery(PetEntity.class, Sort.unsorted(), entityManager)).thenReturn(query);
    when(query.getResultList()).thenReturn(List.of(petEntity));
    List<PetEntity> result = target.findAll();
    assertThat(result.size(), is(1));
}