@Test public void copyEmpty() { SanskritObjectImpl object = new SanskritObjectImpl(objectMapperSupplier); SanskritObject sanskritObject = CopyUtils.makeCopy(objectMapperSupplier, object); sanskritObject.accept(visitor1); verifyNoMoreInteractions(visitor1); }
static SanskritObjectImpl makeCopy(ObjectMapperSupplier objectMapperSupplier, SanskritObject object) { if (object == null) { return null; } SanskritObjectImpl copy = new SanskritObjectImpl(objectMapperSupplier); object.accept(copy); return copy; }
CopyUtils { static SanskritObjectImpl makeCopy(ObjectMapperSupplier objectMapperSupplier, SanskritObject object) { if (object == null) { return null; } SanskritObjectImpl copy = new SanskritObjectImpl(objectMapperSupplier); object.accept(copy); return copy; } }
CopyUtils { static SanskritObjectImpl makeCopy(ObjectMapperSupplier objectMapperSupplier, SanskritObject object) { if (object == null) { return null; } SanskritObjectImpl copy = new SanskritObjectImpl(objectMapperSupplier); object.accept(copy); return copy; }  }
CopyUtils { static SanskritObjectImpl makeCopy(ObjectMapperSupplier objectMapperSupplier, SanskritObject object) { if (object == null) { return null; } SanskritObjectImpl copy = new SanskritObjectImpl(objectMapperSupplier); object.accept(copy); return copy; }   }
CopyUtils { static SanskritObjectImpl makeCopy(ObjectMapperSupplier objectMapperSupplier, SanskritObject object) { if (object == null) { return null; } SanskritObjectImpl copy = new SanskritObjectImpl(objectMapperSupplier); object.accept(copy); return copy; }    }