### Question:
RollbackService extends ExternalTaskUtils { protected Optional<String> findRequestType(String xmlString) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); org.w3c.dom.Document doc; doc = builder.parse(new ByteArrayInputStream(xmlString.getBytes("UTF-8"))); return Optional.of(doc.getDocumentElement().getNodeName()); } catch (Exception e) { logger.error("Error Finding Request Type", e); return Optional.empty(); } }  void executeExternalTask(ExternalTask externalTask, ExternalTaskService externalTaskService);  }### Answer:
@Test public void findRequestTypeTest() throws IOException { String payload = new String(Files.readAllBytes(Paths.get(RESOURCE_PATH + "/vnfAdapterTaskRequestCreate.xml"))); Optional<String> actual = rollbackService.findRequestType(payload); assertEquals("createVfModuleRequest", actual.get()); }