@Test
void testWriteEmptySoapResource(final TemporaryFolder temporaryFolder) {

    SoapResourceWriter writer = new SoapResourceWriter(DocumentFileUtils.INSTANCE);
    Bundle bundle = new Bundle();
    bundle.addEntity(ROOT_FOLDER);
    bundle.setFolderTree(new FolderTree(bundle.getEntities(Folder.class).values()));
    Service service = new Service();
    service.setName(NAME_SERVICE);
    service.setParentFolder(ROOT_FOLDER);
    service.addSoapResource(getSoapResource(WSDL_FILE_NAME, EMPTY, SoapResourceType.WSDL));
    service.setPolicy(POLICY_XML);
    service.setSoapVersion("1.1");
    service.setWssProcessingEnabled(true);
    bundle.getServices().put("service", service);
    writer.write(bundle, temporaryFolder.getRoot(), bundle);
    File wsdlFolder = new File(temporaryFolder.getRoot(), SOAP_RESOURCES_FOLDER);
    assertTrue(wsdlFolder.exists());
    File serviceSoapResourcesFolder = new File(wsdlFolder, NAME_SERVICE);
    assertTrue(serviceSoapResourcesFolder.exists());
    File wsdlFile = new File(serviceSoapResourcesFolder, WSDL_FILE_NAME);
    assertTrue(wsdlFile.exists());
}