### Question:
ApplicationContext { @Override public synchronized String toString() { return MoreObjects. toStringHelper(getClass()). omitNullValues(). add("delegate",this.delegate). add("references",this.references). add("sessionOwner",this.sessionOwner). add("threadSession",this.threadSession). toString(); } private  ApplicationContext(); synchronized WriteSession createSession(); @Override synchronized String toString(); static ApplicationContext getInstance();  }### Answer:
@Test public void testToString() throws Exception { ApplicationContext sut = createContext(); assertThat( sut.toString(), not(equalTo(Utils.defaultToString(sut)))); }