title: Can't create Lombok class inside my test class: modifier static not allowed here
body: <p>I want to create a Lombok class inside a test class</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest
  public class HostelIntegrationTest  {
  
  
      @Data
      @Builder
      @NoArgsConstructor
      @AllArgsConstructor
      @JsonInclude(NON_NULL)
      @EqualsAndHashCode
      class User {
          String property1;
          Instant property2;
          Integer property3;
      }
  </code></pre>
  
  <p>but I get this compilation error:</p>
  
  <blockquote>
    <p>modifier static not allowed here</p>
  </blockquote>