title: Parameterized test using custom objects
body: <p>I am trying to write a Parameterized test for my add method for Binary Search tree
  I wrote the test method:</p>
  <pre><code>void add() {
      student5 =  new Student(&quot;student5&quot;, LocalDate.of(2000,5,12), &quot;none&quot;);
      studentSet2.add(student5);
      assertAll(
              ()-&gt;assertThat(studentSet2).contains(student5),
              ()-&gt;assertThat(studentSet2).hasSize(1),
              ()-&gt;assertThat(studentSet2.iterator().next()).isEqualTo(student5),
              ()-&gt;assertThat(studentSet2.toArray(new Student[1])).containsOnly(student5)
      );
  </code></pre>
  <p>This is my current test method but i want to transform it using parameterized test.But when i started to learn about it ,i found that he can take only strings and primitiv types.
  Can i write something for my test method to take a &quot;Student&quot; object as parameter?</p>