BuildDetails extends BuildSummary { @JsonIgnore public BuildSummary getSummary() { final BuildSummary summary = new BuildSummary(); summary.setUuid(getUuid()); summary.setElapsedTime(getElapsedTime()); summary.setState(getState()); summary.setError(getError()); return summary; }  @JsonIgnore BuildSummary getSummary(); void copyFrom(final BuildDetails source);  }
@Test public void testGetSummary() { final BuildSummary target = source.getSummary(); assertNotNull(target); assertEquals(source.getElapsedTime(), target.getElapsedTime()); assertEquals(source.getError(), target.getError()); assertEquals(source.getState(), target.getState()); }