BuildDetails extends BuildSummary { public void copyFrom(final BuildDetails source) { this.state = source.getState(); this.elapsedTime = source.getElapsedTime(); this.error = source.getError(); this.sequence = source.getSequence(); this.result = source.getResult(); this.dependencies = source.getDependencies(); this.unitTestReport = source.getUnitTestReport(); }  @JsonIgnore BuildSummary getSummary(); void copyFrom(final BuildDetails source);  }
@Test public void testCopyFrom() { final BuildDetails target = new BuildDetails(); target.copyFrom(source); assertNotEquals(source, target); assertEquals(source.getElapsedTime(), target.getElapsedTime()); assertEquals(source.getError(), target.getError()); assertEquals(source.getState(), target.getState()); assertEquals(source.getSequence(), target.getSequence()); assertEquals(source.getResult(), target.getResult()); assertEquals(source.getDependencies(), target.getDependencies()); assertEquals(source.getUnitTestReport(), target.getUnitTestReport()); }