title: SerializationException on junit test
body: <p>I have the following classes:</p>
  
  <pre><code>import lombok.Data;
  
  import java.io.Serializable;
  
  @Data
  public class Person implements Serializable {
      private String age;
  }
  </code></pre>
  
  <hr>
  
  <p>Main Application</p>
  
  <pre><code>import org.apache.commons.lang3.SerializationUtils;
  
  public class MainApp {
      public static void main(String[] args) {
          Person v = new Person() {{
              setAge("SD");
          }};
          Person person2 = SerializationUtils.clone(v);
      }
  }
  </code></pre>
  
  <hr>
  
  <p>Test Class</p>
  
  <pre><code>import org.apache.commons.lang3.SerializationUtils;
  import org.junit.Test;
  
  public class TestClass {
      @Test
      public void test() {
          Person v = new Person() {{
              setAge("SD");
          }};
          Person person2 = SerializationUtils.clone(v);
      }
  }
  </code></pre>
  
  <p>In the main application the serialization works and in the unit test it doesn't.
  It throws SerializationException with the following details:
  org.apache.commons.lang3.SerializationException: java.io.NotSerializableException: com.mypackage.TestClass</p>
  
  <p>I'm using intellij and the project is maven project and the tests are JUnit4. dependency version:</p>
  
  <pre><code>  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
      &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
      &lt;version&gt;3.3.2&lt;/version&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>Please advise how can I solve it?</p>