@Test
void shouldFindAll() {

    Query query = new Query();
    when(queryService.getMongoDBQuery()).thenReturn(query);
    when(entityInformation.getJavaType()).thenReturn(PetDocument.class);
    when(entityInformation.getCollectionName()).thenReturn("pets");
    when(mongoOperations.find(query, PetDocument.class, "pets")).thenReturn(List.of(new PetDocument()));
    List<PetDocument> result = target.findAll();
    assertThat(result.size(), is(1));
}