A class {@link Serializable} {@link Parent} class implementswriteObject() and holds a {@link Child} class that alsoimplements writeObject()
writeObject()
300301302303304305306307
@Test public void testCircularDependencyPojos() { Parent parent = factory.manufacturePojo(Parent.class); Assert.assertNotNull("The parent pojo cannot be null!", parent); Child child = parent.getChild(); Assert.assertNotNull("The child pojo cannot be null!", child); }