@@ -0,0 +1,1647 @@
+import static org.assertj.core.api.Assertions.assertThat;%0D%0A%0D%0Aimport java.math.BigInteger;%0D%0Aimport java.util.List;%0D%0Aimport java.util.concurrent.ExecutionException;%0D%0Aimport java.util.concurrent.Future;%0D%0A%0D%0Aimport org.junit.Test;%0D%0Aimport org.web3j.abi.datatypes.Address;%0D%0Aimport org.web3j.abi.datatypes.Bool;%0D%0Aimport org.web3j.abi.datatypes.Type;%0D%0Aimport org.web3j.abi.datatypes.Utf8String;%0D%0Aimport org.web3j.abi.datatypes.generated.Uint256;%0D%0Aimport org.web3j.protocol.core.methods.response.TransactionReceipt;%0D%0A%0D%0Aimport com.uzh.csg.overlaynetworks.web3j.AsyncHelper;%0D%0Aimport com.uzh.csg.overlaynetworks.web3j.IsContractDeployedExample;%0D%0Aimport com.uzh.csg.overlaynetworks.web3j.MessageRegistryHelper;%0D%0Aimport com.uzh.csg.overlaynetworks.wrappers.MessageRegistry;%0D%0A%0D%0Apublic class WriteValuesToChainTest extends AbstractLocalhostTest%7B%0D%0A%0D%0A    @Test%0D%0A    public void shouldReturnTrueIfValueIsDeployed() throws InterruptedException, ExecutionException %7B%0D%0A        final String contractAddress = run(new IsContractDeployedExample());%0D%0A        final MessageRegistry messageRegistry = MessageRegistryHelper.getMessageRegistry(getWeb3j(), contractAddress); %0D%0A        final BigInteger myBigInt = new BigInteger(%221250%22); %0D%0A        final Uint256 identifier = new Uint256(myBigInt);%0D%0A        final Utf8String message = new Utf8String(%22This is the java Test%22);%0D%0A        final Address receiver = new Address(%220x5BbB245A661C4C112AA0e848A2BB007Ba3e9B628%22);%0D%0A  %0D%0A        TransactionReceipt transactionReceipt = messageRegistry.save(message, receiver, identifier).get();%0D%0A        %0D%0A        System.out.println(transactionReceipt.getTransactionHash());%0D%0A        %0D%0A    %7D%0D%0A%7D

Test for writing into the blockchain