### Question:
TreeListSubItemView implements TreeListSubItem.View { @Override public void setDetails(final String complement) { this.details.textContent = complement; } @Inject  TreeListSubItemView(@Named("span") final HTMLElement description,
                               @Named("span") final HTMLElement details); @Override void init(final TreeListSubItem presenter); @Override void setDescription(final String description); @Override void setDetails(final String complement);  }### Answer:
@Test public void setDetails() { final String text = "Details"; view.setDetails(text); assertEquals(text, details.textContent); }