### Question:
ObjectFactory { public RequestHeader createRequestHeader() { return new RequestHeader(); } ObjectFactory(); RequestHeader createRequestHeader(); SDNCAdapterResponse createSDNCAdapterResponse(); SDNCAdapterRequest createSDNCAdapterRequest();  }### Answer:
@Test public final void testCreateRequestHeader() { ObjectFactory of = new ObjectFactory(); RequestHeader rh = of.createRequestHeader(); rh.setCallbackUrl("callback"); rh.setMsoAction("action"); rh.setRequestId("reqid"); rh.setSvcAction("svcAction"); rh.setSvcInstanceId("svcId"); rh.setSvcOperation("op"); try { JAXBContext jaxbContext = JAXBContext.newInstance(RequestHeader.class); jaxbMarshaller = jaxbContext.createMarshaller(); JAXBContext jaxbContext2 = JAXBContext.newInstance(RequestHeader.class); jaxbUnmarshaller = jaxbContext2.createUnmarshaller(); } catch (JAXBException e) { e.printStackTrace(); fail(); return; } StringWriter writer = new StringWriter(); try { jaxbMarshaller.marshal(rh, writer); } catch (JAXBException e) { e.printStackTrace(); fail(); } String marshalled = writer.toString(); assertThat(marshalled, containsString("<RequestId>reqid</RequestId>")); InputStream inputStream = new ByteArrayInputStream(marshalled.getBytes(Charset.forName("UTF-8"))); try { RequestHeader res2 = (RequestHeader) jaxbUnmarshaller.unmarshal(inputStream); assertEquals("callback", res2.getCallbackUrl()); assertEquals("action", res2.getMsoAction()); assertEquals("op", res2.getSvcOperation()); } catch (JAXBException e) { e.printStackTrace(); fail(); } }