@Test public void testToString() throws Exception { ApplicationContext sut = createContext(); assertThat( sut.toString(), not(equalTo(Utils.defaultToString(sut)))); }
@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(); }
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(); } }
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(); }
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(); }
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();  }