ConnectClientFailure extends RequestFailure<ClientIdentifier, ConnectClientFailure> { @Override protected ConnectClientFailure cloneAsVersion(final ABIVersion version) { return new ConnectClientFailure(this, version); } ConnectClientFailure(final ClientIdentifier target, final long sequence, final RequestException cause); private  ConnectClientFailure(final ConnectClientFailure failure, final ABIVersion version);   }
@Test public void cloneAsVersionTest() { final ConnectClientFailure clone = OBJECT.cloneAsVersion(ABIVersion.current()); Assert.assertEquals(OBJECT.getTarget(), clone.getTarget()); Assert.assertEquals(OBJECT.getSequence(), clone.getSequence()); Assert.assertEquals(OBJECT.getCause(), clone.getCause()); }