packageat.ac.tuwien.sepm.assignment.individual.unit.persistence;importstaticorg.junit.jupiter.api.Assertions.*;importat.ac.tuwien.sepm.assignment.individual.exception.NotFoundException;importat.ac.tuwien.sepm.assignment.individual.persistence.OwnerDao;importorg.junit.jupiter.api.DisplayName;importorg.junit.jupiter.api.Test;importorg.springframework.beans.factory.annotation.Autowired;publicabstractclassOwnerDaoTestBase{@AutowiredOwnerDaoownerDao;@Test@DisplayName("Finding owner by non-existing ID should throw NotFoundException")publicvoidfindingOwnerById_nonExisting_shouldThrowNotFoundException(){assertThrows(NotFoundException.class,()->ownerDao.findOneById(1L));}}