title: EqualsVerifier in SpringBoot
body: <p>I am creating the <code>tests</code> for two classes that share a list of data. When I use <code>EqualsVerifier</code> I get an error because it is asking me for a list with data shared by these two classes.</p>
  <p>This is the <strong>error</strong>:</p>
  <p><code>Recursive datastructure. Add prefab values for one of the following types: CustomerView, List&lt;YearConfigView&gt;, YearConfigView</code></p>
  <p>This is the <code>@Test</code> class:</p>
  <pre><code>@Test
      public void CustomerViewTest() {
  EqualsVerifier.forClass(CustomerView.class).withRedefinedSuperclass().withGenericPrefabValues(CustomerView.class).verify();
          }
  
  @Test
      public void YearConfigViewTest() {
          EqualsVerifier.forClass(YearConfigView.class).suppress(Warning.ALL_FIELDS_SHOULD_BE_USED).verify();
      }
  </code></pre>
  <p><code>CustomerView.java</code>:</p>
  <pre><code>public class CustomerView extends EntityBase&lt;Integer&gt; {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Integer id;
      private String name;
      private List&lt;YearConfigView&gt; yearConfigs;
  
      @JsonProperty(&quot;current_year_config&quot;)
      public YearConfigView getCurrentYearConfig() {
          if (this.getYearConfigs() == null || this.getYearConfigs().isEmpty()) {
              return null;
          }
          int currentYear = LocalDate.now().getYear();
          return this.yearConfigs.parallelStream().filter(yc -&gt; yc.getYear() == currentYear).findAny().orElse(null);
      }
  }
  </code></pre>
  <p><code>YearConfigView.java</code>:</p>
  <pre><code>public class YearConfigView extends EntityBase&lt;Integer&gt; {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Integer id;
      private CustomerView customer;
      private Integer year;
      private String comments;
  }
  </code></pre>
  <p><strong>My problem:</strong> What do I have to change or add in <code>EqualsVerifier</code> to solve the problem?</p>