/**
 * Copyright 2014 BitcoinJ Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.dogecoindarkdark.dogecoindarkdarkj.core;

import com.dogecoindarkdark.dogecoindarkdarkj.params.MainNetParams;
import com.dogecoindarkdark.dogecoindarkdarkj.params.TestNet3Params;
import org.junit.Test;

import static com.dogecoindarkdark.dogecoindarkdarkj.core.Utils.HEX;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;

/**
 *
 */
public class VersionedChecksummedBytesTest {
    static final NetworkParameters testParams = TestNet3Params.get();
    static final NetworkParameters mainParams = MainNetParams.get();

    @Test
    public void stringification() throws Exception {
        // Test a testnet address.
        VersionedChecksummedBytes a = new VersionedChecksummedBytes(testParams.getAddressHeader(), HEX.decode("fda79a24e50ff70ff42f7d89585da5bd19d9e5cc"));
        assertEquals("n4eA2nbYqErp7H6jebchxAN59DmNpksexv", a.toString());

        VersionedChecksummedBytes b = new VersionedChecksummedBytes(mainParams.getAddressHeader(), HEX.decode("4a22c3c4cbb31e4d03b15550636762bda0baf85a"));
        assertEquals("17kzeh4N8g49GFvdDzSf8PjaPfyoD1MndL", b.toString());
    }

    @Test
    public void cloning() throws Exception {
        VersionedChecksummedBytes a = new VersionedChecksummedBytes(testParams.getAddressHeader(), HEX.decode("fda79a24e50ff70ff42f7d89585da5bd19d9e5cc"));
        VersionedChecksummedBytes b = a.clone();

        assertEquals(a, b);
        assertNotSame(a, b);
    }

    @Test
    public void comparisonCloneEqualTo() throws Exception {
        VersionedChecksummedBytes a = new VersionedChecksummedBytes(testParams.getAddressHeader(), HEX.decode("fda79a24e50ff70ff42f7d89585da5bd19d9e5cc"));
        VersionedChecksummedBytes b = a.clone();

        assertTrue(a.compareTo(b) == 0);
    }
}

@@ -610,36 +610,32 @@
 com.dogecoindark
-dark
 .dogecoindarkdar
@@ -627,28 +627,24 @@
 dogecoindark
-dark
 j.core;%0A%0Aimp
@@ -655,36 +655,32 @@
 com.dogecoindark
-dark
 .dogecoindarkdar
@@ -668,36 +668,32 @@
 ark.dogecoindark
-dark
 j.params.MainNet
@@ -715,36 +715,32 @@
 com.dogecoindark
-dark
 .dogecoindarkdar
@@ -736,20 +736,16 @@
 coindark
-dark
 j.params
@@ -815,20 +815,16 @@
 coindark
-dark
 .dogecoi
@@ -828,20 +828,16 @@
 coindark
-dark
 j.core.U

Update VersionedChecksummedBytesTest.java