@@ -0,0 +1,1150 @@
+package com.github.to2mbn.jmccc.mcdownloader.test;%0A%0Aimport static org.junit.Assert.*;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0Aimport org.json.JSONObject;%0Aimport org.junit.Test;%0Aimport com.github.to2mbn.jmccc.mcdownloader.Asset;%0Aimport com.github.to2mbn.jmccc.mcdownloader.AssetsIndex;%0A%0Apublic class AssetsIndexTest %7B%0A%0A%09@Test%0A%09public void testFromJson() %7B%0A%09%09String json = %22%7B%5C%22objects%5C%22: %7B%5C%22test1%5C%22: %7B%5C%22hash%5C%22: %5C%2210a54fc66c8f479bb65c8d39c3b62265ac82e742%5C%22,%5C%22size%5C%22: 8112%7D,%5C%22test/test2%5C%22: %7B%5C%22hash%5C%22: %5C%2214cfb2f24e7d91dbc22a2a0e3b880d9829320243%5C%22,%5C%22size%5C%22: 7347%7D,%5C%22test/test3.test%5C%22: %7B%5C%22hash%5C%22: %5C%22bf7fadaf64945f6b31c803d086ac6a652aabef9b%5C%22,%5C%22size%5C%22: 3838%7D%7D%7D%22;%0A%09%09AssetsIndex indexAc = AssetsIndex.fromJson(new JSONObject(json));%0A%09%09Set%3CAsset%3E assetsEx = new HashSet%3C%3E();%0A%09%09assetsEx.add(new Asset(%22test1%22, %2210a54fc66c8f479bb65c8d39c3b62265ac82e742%22, 8112));%0A%09%09assetsEx.add(new Asset(%22test/test2%22, %2214cfb2f24e7d91dbc22a2a0e3b880d9829320243%22, 7347));%0A%09%09assetsEx.add(new Asset(%22test/test3.test%22, %22bf7fadaf64945f6b31c803d086ac6a652aabef9b%22, 3838));%0A%09%09assertEquals(new AssetsIndex(assetsEx), indexAc);%0A%09%09assertEquals(assetsEx, indexAc.getAssets());%0A%09%7D%0A%0A%7D%0A

add test for asset index