### Question:
IdrefInjectionBean { @Override public String toString() { return "IdrefInjectionBean{" + "id='" + id + '\'' + ", idref='" + idref + '\'' + '}'; }  void setId(String id); void setIdref(String idref); @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { IdrefInjectionBean idrefInjectionBean = getBean(IdrefInjectionBean.class); System.out.println(PrintUtil.formatTestResult(idrefInjectionBean)); }