@@ -0,0 +1,1293 @@
+package com.github.tomschi.commons.springdatajpa.service;%0A%0Aimport com.github.tomschi.commons.data.dbo.DatabaseObject;%0Aimport org.junit.jupiter.api.BeforeAll;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.TestInstance;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.springframework.data.jpa.repository.JpaRepository;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertNotNull;%0Aimport static org.junit.jupiter.api.Assertions.assertThrows;%0Aimport static org.mockito.Mockito.when;%0A%0A@TestInstance(TestInstance.Lifecycle.PER_CLASS)%0Apublic class AbstractJpaServiceTest %7B%0A%0A    @Mock private JpaRepository%3CDatabaseObject%3CLong%3E, Long%3E repository;%0A    @Mock private AbstractJpaService%3CJpaRepository%3CDatabaseObject%3CLong%3E, Long%3E%3E service;%0A%0A    @BeforeAll%0A    void init() %7B%0A        MockitoAnnotations.initMocks(this);%0A        when(service.getRepository()).thenReturn(repository);%0A    %7D%0A%0A    @Test%0A    void testNullConstructor() %7B%0A        assertThrows(IllegalArgumentException.class,%0A                () -%3E new AbstractJpaService%3CJpaRepository%3CDatabaseObject%3CLong%3E, Long%3E%3E(null)%7B%7D);%0A    %7D%0A%0A    @Test%0A    void testGetRepository() %7B%0A        assertNotNull(new AbstractJpaService%3CJpaRepository%3CDatabaseObject%3CLong%3E, Long%3E%3E(repository) %7B%7D.getRepository());%0A    %7D%0A%0A%7D

Create test class for AbstractJpaService.