### Question:
AWSInstance { @Override public String toString(){ return MoreObjects.toStringHelper(this) .add("ID", id) .add("Instance Application", application) .add("Instance Name", name) .add("Instance ID", instanceId) .add("Instance IP", ip) .add("Status", status) .add("Platform", platform) .toString(); } AWSInstance();  AWSInstance(String name, String application, String instanceId, String ip, String status, String platform); @Id @GeneratedValue Long getId(); String getName(); AWSInstance setName(String name); String getApplication(); AWSInstance setApplication(String application); String getInstanceId(); AWSInstance setInstanceId(String instanceId); String getIp(); AWSInstance setIp(String ip); String getStatus(); AWSInstance setStatus(String status); String getPlatform(); AWSInstance setPlatform(String platform); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testToString(){ Long id = 1L; String name = "TheDude"; String application = "TST"; String instanceId = "i-tst"; String ip = "127.0.0.1"; String status = "testStatus"; String platform ="Linux"; AWSInstance awsInstance = new AWSInstance() .setId(id) .setName(name) .setApplication(application) .setInstanceId(instanceId) .setIp(ip) .setStatus(status) .setPlatform(platform); String exp = MoreObjects.toStringHelper(AWSInstance.class) .add("ID", id) .add("Instance Application", application) .add("Instance Name", name) .add("Instance ID", instanceId) .add("Instance IP", ip) .add("Status", status) .add("Platform", platform) .toString(); Assert.assertEquals("Testing toString()", exp, awsInstance.toString()); }