Are your dependencies correct? Make sure Lombok is in dependency not testDependencies for instance, this is the latest version from mvnrepository.
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.38</version>
<scope>provided</scope>
</dependency>
After you have updated the pom.xml you can run:
mvn clean install
to update the dependencies
Instead of using @Getter and @Setter create a simple POJO in your test case and try and test it like that. Are your test class in the right directory?
src/test/java is the most common directory for test classes.