@@ -0,0 +1,1105 @@
+package org.hive2hive.core.tomp2p;%0A%0Aimport java.util.Arrays;%0A%0Aimport net.tomp2p.peers.Number160;%0A%0Aimport org.hive2hive.core.H2HJUnitTest;%0Aimport org.hive2hive.core.network.NetworkTestUtil;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Assert;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Apublic class Number160Test extends H2HJUnitTest %7B%0A%0A%09@BeforeClass%0A%09public static void initTest() throws Exception %7B%0A%09%09testClass = Number160Test.class;%0A%09%09beforeClass();%0A%09%7D%0A%0A%09@Test%0A%09public void testHashes() %7B%0A%09%09// test two random literals%0A%09%09String unrelated1 = NetworkTestUtil.randomString();%0A%09%09Number160 num1 = Number160.createHash(unrelated1);%0A%09%09String unrelated2 = NetworkTestUtil.randomString();%0A%09%09Number160 num2 = Number160.createHash(unrelated2);%0A%0A%09%09Assert.assertFalse(Arrays.equals(num1.toByteArray(), num2.toByteArray()));%0A%0A%09%09// test two close literals%0A%09%09Number160 ua = Number160.createHash(%22User A%22);%0A%09%09Number160 ub = Number160.createHash(%22User B%22);%0A%09%09Assert.assertFalse(Arrays.equals(ua.toByteArray(), ub.toByteArray()));%0A%0A%09%7D%0A%0A%09@AfterClass%0A%09public static void cleanAfterClass() %7B%0A%09%09afterClass();%0A%09%7D%0A%7D%0A

Add test for Number160 (hashing seemed suspicious)