/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * 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.emc.pravega.stream.impl;

import org.junit.Ignore;
import org.junit.Test;

import static org.junit.Assert.fail;

@Ignore
public class JavaSerializerTest {
    @Test
    public void testObject() {
        fail();
    }

    @Test
    public void testMap() {
        fail();
    }

    @Test
    public void testByteArray() {
        fail();
    }

    @Test
    public void testRefCycle() {
        fail();
    }

    @Test
    public void testCustomSerializer() {
        fail();
    }
}

@@ -101,17 +101,16 @@
 eements.
- 
  See the
@@ -212,17 +212,16 @@
 nership.
- 
  The ASF
@@ -375,17 +375,16 @@
 License.
- 
  You may
@@ -838,32 +838,39 @@
 m.impl;%0A%0Aimport 
+static 
 org.junit.Ignore
@@ -863,22 +863,35 @@
 g.junit.
-Ignore
+Assert.assertEquals
 ;%0Aimport
@@ -891,16 +891,23 @@
 %0Aimport 
+static 
 org.juni
@@ -912,417 +912,1676 @@
 nit.
-Test;%0A%0Aimport static org.junit.Assert.fail;%0A%0A@Ignore%0Apublic class JavaSerializerTest %7B%0A    @Test%0A    public void testObject() %7B%0A        fail();%0A    %7D%0A%0A    @Test%0A    public void testMap() %7B%0A        fail();%0A    %7D%0A%0A    @Test%0A    public void testByteArray() %7B%0A        fail();%0A    %7D%0A%0A    @Test%0A    public void testRefCycle() %7B%0A        fail();%0A    %7D%0A%0A    @Test%0A    public void testCustomSerializer() %7B%0A        fail(
+Assert.fail;%0A%0Aimport java.io.Serializable;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0A%0Aimport com.emc.pravega.testcommon.AssertExtensions;%0A%0Aimport lombok.Data;%0A%0Apublic class JavaSerializerTest %7B%0A%0A    @Data%0A    private static class Foo implements Serializable %7B%0A        final int x;%0A    %7D%0A%0A    @Test%0A    public void testObject() %7B%0A        JavaSerializer%3CFoo%3E serializer = new JavaSerializer%3C%3E();%0A        Foo one = new Foo(1);%0A        Foo result = serializer.deserialize(serializer.serialize(one));%0A        assertEquals(one, result);%0A    %7D%0A%0A    @Test%0A    public void testMap() %7B%0A        JavaSerializer%3CHashMap%3CInteger, Integer%3E%3E serializer = new JavaSerializer%3C%3E();%0A        HashMap%3CInteger, Integer%3E in = new HashMap%3C%3E();%0A        in.put(1, 1);%0A        in.put(2, 2);%0A        in.put(3, 3);%0A        HashMap%3CInteger, Integer%3E out = serializer.deserialize(serializer.serialize(in));%0A        assertEquals(in, out);%0A    %7D%0A%0A    @Test%0A    public void testByteArray() %7B%0A        JavaSerializer%3Cbyte%5B%5D%3E serializer = new JavaSerializer%3C%3E();%0A        byte%5B%5D in = new byte%5B%5D %7B 1, 2, 3, 4, 5, 6, 7, 8, 9 %7D;%0A        byte%5B%5D out = serializer.deserialize(serializer.serialize(in));%0A        AssertExtensions.assertArrayEquals(%22testByteArray failed%22, in, 0, out, 0, in.length);%0A    %7D%0A%0A    @Test%0A    public void testRefCycle() %7B%0A        JavaSerializer%3CHashMap%3CInteger, Map%3E%3E serializer = new JavaSerializer%3C%3E();%0A        HashMap%3CInteger, Map%3E in = new HashMap%3C%3E();%0A        in.put(1, in);%0A        in.put(2, in);%0A        in.put(3, in);%0A        HashMap%3CInteger, Map%3E out = serializer.deserialize(serializer.serialize(in));%0A        assertEquals(in.keySet(), out.keySet()
 );%0A 
@@ -2585,10 +2585,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

Add serializer test