@Test
@Disabled
// todo check how to enable
public void testPutCsarInBlockchainAndImmutableStorage() throws Exception {

    setRevisionTo("origin/plain");
    CsarExporter exporter = new CsarExporter();
    DefinitionsChildId id = new ServiceTemplateId("http://plain.winery.opentosca.org/servicetemplates", "ServiceTemplateWithAllReqCapVariants", false);
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    CompletableFuture<String> future = exporter.writeCsarAndSaveManifestInProvenanceLayer(RepositoryFactory.getRepository(), id, os);
    String transactionHash = future.get();
    assertNotNull(transactionHash);
    try (InputStream inputStream = new ByteArrayInputStream(os.toByteArray());
         ZipInputStream zis = new ZipInputStream(inputStream)) {
        ManifestContents manifestContents = parseManifest(zis);
        assertNotNull(manifestContents);
        for (String section : manifestContents.getSectionNames()) {
            assertNotNull(manifestContents.getAttributesForSection(section).get(TOSCAMetaFileAttributes.IMMUTABLE_ADDRESS));
        }
    }
}