ContainerHostInfoModel extends HostInfoModel implements ContainerHostInfo { @Override public String toString() { return MoreObjects.toStringHelper( this ).add( "id", id ).add( "hostname", hostname ) .add( "interfaces", hostInterfaces ).add( "status", state ).add( "arch", hostArchitecture ) .add( "environmentId", envId ).add( "vlan", vlan ).toString(); } ContainerHostInfoModel( @JsonProperty( "id" ) final String id,
                                   @JsonProperty( "hostname" ) final String hostname,
                                   @JsonProperty( "containerName" ) final String containerName,
                                   @JsonProperty( "interfaces" ) final HostInterfaces hostInterfaces,
                                   @JsonProperty( "arch" ) final HostArchitecture hostArchitecture,
                                   @JsonProperty( "status" ) final ContainerHostState state,
                                   @JsonProperty( "environmentId" ) final String envId,
                                   @JsonProperty( "vlan" ) final Integer vlan );  ContainerHostInfoModel( final ContainerHostInfo info ); @Override Quota getRawQuota(); @Override String getEnvId(); @Override Integer getVlan(); @Override HostInterfaces getHostInterfaces(); void setHostInterfaces( final HostInterfaces hostInterfaces ); @Override ContainerHostState getState(); @Override String getContainerName(); @Override String toString(); @Override int compareTo( final HostInfo o ); @Override boolean equals( final Object o ); @Override int hashCode();  }
@Test public void testToString() throws Exception { String toString = containerHostInfo.toString(); assertThat( toString, containsString( HOSTNAME ) ); assertThat( toString, containsString( IP ) ); assertThat( toString, containsString( ID ) ); assertThat( toString, containsString( CONTAINER_STATUS.name() ) ); assertThat( toString, containsString( ARCH.name() ) ); }