}
try {
List<Attribute> attrs = new LinkedList<Attribute>();
attrs.add(feedDoc.buildAttribute("term", "something"));
Category cat = feedDoc.buildCategory(attrs, "");
assertTrue(cat != null);
assertTrue(cat.getContent() == null);
} catch (Exception e) {
fail("should not get here.");
}
try {
List<Attribute> attrs = new LinkedList<Attribute>();
attrs.add(feedDoc.buildAttribute("term", "something"));
Category cat = feedDoc.buildCategory(attrs,
"anything should not throw exception");
assertTrue(cat != null);
assertTrue(cat.getContent() != null);
} catch (Exception e) {
fail("should not get here.");
}
}