### Question:
SDNCAdapterRequest { @Override public String toString() { String rd = ""; if (requestData != null) { Node node = (Node) requestData; Document doc = node.getOwnerDocument(); rd = Utils.domToStr(doc); } return "SDNCAdapterRequest [requestHeader=" + requestHeader.toString() + ", requestData=" + rd + "]"; }  RequestHeader getRequestHeader(); void setRequestHeader(RequestHeader value); Object getRequestData(); void setRequestData(Object value); @Override String toString();  }### Answer:
@Test public final void testtoString() { ((SDNCAdapterRequest) sd).setRequestData("data"); ((SDNCAdapterRequest) sd).setRequestHeader(rh); assertNotNull(((SDNCAdapterRequest) sd).getRequestData()); assertEquals("data", ((SDNCAdapterRequest) sd).getRequestData()); assertEquals(rh, ((SDNCAdapterRequest) sd).getRequestHeader()); }