coll.setAcceptsEntry();
assertTrue("Collection does not accept entries.", coll.acceptsEntry());
coll.addAccepts("application/apples");
assertTrue("Collection does not accept apples.", coll.accepts("application/apples"));
StringWriter sw = new StringWriter();
svc.writeTo(sw);
// System.out.println(sw);
String s = sw.toString();
assertTrue("Service document does not specify acceptance of entries.", s
.contains("application/atom+xml; type=entry"));
assertTrue("Service document does not specify acceptance of apples.", s.contains("application/apples"));