SingleDeviceRequest { @Override public String toString() { return getMessage(); } SingleDeviceRequest(String deviceName, String deviceType, Document requestToBeProcessed); void setDeviceType(String deviceType); String getDeviceType(); @Override String toString();  }
@Test public void toStringTest() throws Exception { String message = m_singleDeviceRequest.toString(); assertTrue(message.contains("name")); }