### Question:
AliasByNamePropertyBean { @Override public String toString() { return "AliasByNamePropertyBean{}"; }  @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { List<AliasByNamePropertyBean> list = new ArrayList<>(); list.add(getBean("aliasByNamePropertyBeanOne", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanTwo", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanThree", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameOne", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameTwo", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameThree", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameFour", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameFive", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameSix", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameSeven", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameEight", AliasByNamePropertyBean.class)); list.add(getBean("aliasByNamePropertyBeanNameNigh", AliasByNamePropertyBean.class)); StringBuilder stringBuilder = new StringBuilder(); Set<Integer> hashCodes = new HashSet<>(); int hashCode; for (AliasByNamePropertyBean aliasByNamePropertyBean : list) { hashCode = aliasByNamePropertyBean.hashCode(); stringBuilder.append(hashCode).append(" : "); hashCodes.add(hashCode); } stringBuilder.substring(0, stringBuilder.lastIndexOf(":")); System.out.println(hashCodes); System.out.println(stringBuilder.toString()); System.out.println(PrintUtil.formatTestResult(list)); }