MockArticle mock = new MockArticle();
mock.setSubject(new Topic(URI, NAME));
try {
Article article = new Article("test", mock.toXML());
Topic subject = article.getSubject();
assertEquals("Subject has wrong uri", URI, subject.getUri());
assertEquals("Subject has wrong name", NAME, subject.getName());
} catch (IOException e) {
fail("Failed to parse article");
}