android - Cloning an object in java: org.objenesis.ObjenesisException: java.lang.NoSuchMethodException: newInstance [class java.lang.Class, int] -
i using espresso test application. i using library uk.com.robust-it:cloning ( java deep cloning library ) version 1.9.2 clone object. if using application, have no exception, when tests running, have following exception: org.objenesis.objenesisexception: java.lang.nosuchmethodexception: newinstance [class java.lang.class, int] @ org.objenesis.instantiator.android.androidinstantiator.getnewinstancemethod(androidinstantiator.java:62) @ org.objenesis.instantiator.android.androidinstantiator.<init>(androidinstantiator.java:38) @ org.objenesis.strategy.stdinstantiatorstrategy.newinstantiatorof(stdinstantiatorstrategy.java:75) @ org.objenesis.objenesisbase.getinstantiatorof(objenesisbase.java:90) @ org.objenesis.objenesisbase.newinstance(objenesisbase.java:73) @ com.rits.cloning.objenesisinstantiationstrategy.newinstance(objenesisinstantiationstrategy.java:18) @ com.rits.cloning.cloner.new...