// Path: java/core/src/main/java/eu/mais_h/mathsync/serialize/Deserializer.java
// public interface Deserializer<T> {
// 
//   /**
//    * Deserializes an array of bytes back to an object.
//    *
//    * <p>Any array of bytes should lead to either a non <code>null</code> value or throw an
//    * {@link IllegalArgumentException}.</p>
//    *
//    * <p>The output must be consistent, an identical output should be returned if called twice
//    * on the identical arrays: for any valid <code>a1</code> and <code>a2</code>,
//    * <code>Arrays.equals(a1, a2)</code> implies
//    * <code>deserialize(a1).equals(deserialize(a2))</code>.</p>
//    *
//    * @param content the array of bytes representing an object.
//    * @return the object deserialized from the array of bytes.
//    * @throws IllegalArgumentException if the input array does not denote a valid object.
//    */
//   T deserialize(byte[] content) throws IllegalArgumentException;
// }


import static org.fest.assertions.Assertions.assertThat;
import static org.fest.assertions.Fail.fail;
import java.util.Collections;
import java.util.Iterator;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Matchers;
import org.mockito.Mockito;
import eu.mais_h.mathsync.serialize.Deserializer;
package eu.mais_h.mathsync;





public class ResolverFromItemsTest {

  @SuppressWarnings("unchecked")
  private Iterable<byte[]> local = Mockito.mock(Iterable.class);
  @SuppressWarnings("unchecked")
  private Iterator<byte[]> iterator = Mockito.mock(Iterator.class);

  private String localElement = "element1";
  private byte[] localContent = new byte[] { (byte)1, (byte)2 };

  private String remoteElement = "element2";
  private byte[] remoteContent = new byte[] { (byte)3, (byte)4 };

  @SuppressWarnings("unchecked")
  private Difference<byte[]> difference = Mockito.mock(Difference.class);

  private Summarizer remote = Mockito.mock(Summarizer.class);

  @SuppressWarnings("unchecked")
// Path: java/core/src/main/java/eu/mais_h/mathsync/serialize/Deserializer.java
// public interface Deserializer<T> {
// 
//   /**
//    * Deserializes an array of bytes back to an object.
//    *
//    * <p>Any array of bytes should lead to either a non <code>null</code> value or throw an
//    * {@link IllegalArgumentException}.</p>
//    *
//    * <p>The output must be consistent, an identical output should be returned if called twice
//    * on the identical arrays: for any valid <code>a1</code> and <code>a2</code>,
//    * <code>Arrays.equals(a1, a2)</code> implies
//    * <code>deserialize(a1).equals(deserialize(a2))</code>.</p>
//    *
//    * @param content the array of bytes representing an object.
//    * @return the object deserialized from the array of bytes.
//    * @throws IllegalArgumentException if the input array does not denote a valid object.
//    */
//   T deserialize(byte[] content) throws IllegalArgumentException;
// }


// Path: java/core/src/test/java/eu/mais_h/mathsync/ResolverFromItemsTest.java
import static org.fest.assertions.Assertions.assertThat;
import static org.fest.assertions.Fail.fail;
import java.util.Collections;
import java.util.Iterator;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Matchers;
import org.mockito.Mockito;
import eu.mais_h.mathsync.serialize.Deserializer;

package eu.mais_h.mathsync;





public class ResolverFromItemsTest {

  @SuppressWarnings("unchecked")
  private Iterable<byte[]> local = Mockito.mock(Iterable.class);
  @SuppressWarnings("unchecked")
  private Iterator<byte[]> iterator = Mockito.mock(Iterator.class);

  private String localElement = "element1";
  private byte[] localContent = new byte[] { (byte)1, (byte)2 };

  private String remoteElement = "element2";
  private byte[] remoteContent = new byte[] { (byte)3, (byte)4 };

  @SuppressWarnings("unchecked")
  private Difference<byte[]> difference = Mockito.mock(Difference.class);

  private Summarizer remote = Mockito.mock(Summarizer.class);

  @SuppressWarnings("unchecked")
  private Deserializer<String> deserializer = Mockito.mock(Deserializer.class);