AbstractSubutaiHost implements Host { @Override public String toString() { return "SubutaiHost{" + "peerId=" + peerId + ", lastHeartbeat=" + lastHeartbeat + '}'; } protected  AbstractSubutaiHost( final String peerId, final String hostId, final String hostname,
                                   HostArchitecture architecture ); protected  AbstractSubutaiHost( final String peerId, final HostInfo hostInfo ); protected  AbstractSubutaiHost(); void init(); @Override Peer getPeer(); void setPeer( Peer peer ); @Override CommandResult execute( final RequestBuilder requestBuilder ); @Override CommandResult execute( final RequestBuilder requestBuilder, final CommandCallback callback ); @Override void executeAsync( final RequestBuilder requestBuilder ); @Override void executeAsync( final RequestBuilder requestBuilder, final CommandCallback callback ); @Override String getId(); @Override String getPeerId(); @Override String getHostname(); void updateHostInfo( final HostInfo hostInfo ); long getLastHeartbeat(); @Override HostArchitecture getArch(); @Override boolean equals( final Object o ); @Override int hashCode(); @Override String toString(); @Override int compareTo( final HostInfo o );  }
@Test public void testToString() throws Exception { assertThat( host.toString(), containsString( PEER_ID ) ); }