### Question:
Device { @Override public String toString() { return "Device{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", status=" + status + ", type='" + type + '\'' + ", created=" + created + ", updated=" + updated + '}'; } Device(String id, String name, DeviceStatus status, String type, Date created, Date updated); String getId(); String getName(); DeviceStatus getStatus(); String getType(); Date getCreated(); Date getUpdated(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void toStringContainsClassName() throws Exception { assertTrue(device.toString().contains(device.getClass().getSimpleName())); }