@@ -0,0 +1,1476 @@
+/*%0A * Copyright 2017 PitceR%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage pl.pitkour.pitkit.item;%0A%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileOutputStream;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0Aimport org.bukkit.Material;%0Aimport org.junit.Test;%0A%0Apublic class ItemSerializationTest%0A%7B%0A%09@Test%0A%09public void testSerialization() throws Exception%0A%09%7B%0A%09%09Item diamond = Item.of(Material.DIAMOND);%0A%09%09File file = new File(%22diamond.item%22);%0A%09%09FileOutputStream fileOutputStream = new FileOutputStream(file);%0A%09%09ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);%0A%09%09objectOutputStream.writeObject(diamond);%0A%09%09objectOutputStream.close();%0A%09%09FileInputStream fileInputStream = new FileInputStream(file);%0A%09%09ObjectInputStream inputStream = new ObjectInputStream(fileInputStream);%0A%09%09Object object = inputStream.readObject();%0A%09%09inputStream.close();%0A%09%09assert diamond.equals(object);%0A%09%7D%0A%7D

Add item serialization test