ModifyTransactionSuccess extends TransactionSuccess<ModifyTransactionSuccess> { @Override protected ModifyTransactionSuccess cloneAsVersion(final ABIVersion version) { return new ModifyTransactionSuccess(this, version); } ModifyTransactionSuccess(final TransactionIdentifier identifier, final long sequence); private  ModifyTransactionSuccess(final ModifyTransactionSuccess success, final ABIVersion version);   }
@Test public void cloneAsVersionTest() { final ModifyTransactionSuccess clone = OBJECT.cloneAsVersion(ABIVersion.BORON); assertEquals(ABIVersion.BORON, clone.getVersion()); assertEquals(OBJECT.getSequence(), clone.getSequence()); assertEquals(OBJECT.getTarget(), clone.getTarget()); }