@@ -0,0 +1,2139 @@
+package at.rags.morpheus;%0A%0Aimport android.annotation.TargetApi;%0Aimport android.os.Build;%0Aimport android.test.suitebuilder.annotation.SmallTest;%0Aimport android.util.ArrayMap;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Dictionary;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Objects;%0A%0Aimport at.rags.morpheus.TestResources.Article;%0Aimport at.rags.morpheus.TestResources.Author;%0A%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static junit.framework.Assert.assertNotNull;%0A%0A/**%0A * Created by raphaelseher on 16/09/16.%0A */%0A@RunWith(JUnit4.class)%0Apublic class SerializerUnitTest %7B%0A  private Serializer serializer;%0A%0A  @Before%0A  public void setup() %7B%0A    serializer = new Serializer();%0A  %7D%0A%0A  @TargetApi(Build.VERSION_CODES.KITKAT)%0A  @Test%0A  public void testGetFieldsAsDictionary() %7B%0A    Article article = new Article();%0A    article.setTitle(%22title%22);%0A    article.setPublicStatus(true);%0A    ArrayList%3CString%3E tags = new ArrayList%3CString%3E();%0A    tags.add(%22tag1%22);%0A    article.setTags(tags);%0A    ArrayMap%3CString, String%3E testmap = new ArrayMap%3C%3E();%0A    testmap.put(%22key%22, %22value%22);%0A    article.setMap(testmap);%0A    article.setVersion(1);%0A    article.setPrice(1.0);%0A%0A    Map%3CString, Object%3E checkMap = new HashMap%3C%3E();%0A    checkMap.put(%22price%22, 1.0);%0A    checkMap.put(%22public%22, %22true%22);%0A    checkMap.put(%22title%22, %22title%22);%0A    checkMap.put(%22map%22, testmap);%0A    checkMap.put(%22version%22, 1);%0A    checkMap.put(%22tags%22, tags);%0A%0A    Map%3CString, Object%3E map = serializer.getFieldsAsDictionary(article);%0A%0A    assertNotNull(map);%0A    assertEquals(checkMap.toString(), map.toString());%0A  %7D%0A%0A  @Test%0A  public void testGetRelationships() %7B%0A    Article article = new Article();%0A    Author author = new Author();%0A    article.setAuthor(author);%0A%0A%0A    HashMap%3CString, Object%3E checkMap = new HashMap%3C%3E();%0A    checkMap.put(%22author%22, author);%0A    checkMap.put(%22authors%22, null);%0A%0A    HashMap%3CString, Object%3E output = serializer.getRelationships(article);%0A%0A    assertEquals(output.toString(), checkMap.toString());%0A  %7D%0A%0A%7D%0A

Add Serializer tests