    @Test
    public void testSerialize() throws Exception {

        NewsSerializer serializer = new NewsSerializer();
        UUID uuid = UUID.randomUUID();
        News news = new News(uuid, "Test Author", "Test TitleÄÖÜ", "Test test test");
        byte[] bytes = serializer.serialize("", news);
        News reparsedNews = mapper.readValue(bytes, News.class);
        assertThat(reparsedNews.id, is(equalTo(news.id)));
        assertThat(reparsedNews.author, is(equalTo("Test Author")));
        assertThat(reparsedNews.title, is(equalTo("Test TitleÄÖÜ")));
        assertThat(reparsedNews.body, is(equalTo("Test test test")));

    }