public void testCollectionAcceptsMultipart() throws Exception {
Abdera abdera = new Abdera();
Factory factory = abdera.getFactory();
Service svc = factory.newService();
Workspace ws = svc.addWorkspace("test-ws");
FOMMultipartCollection coll =
(FOMMultipartCollection)ws.addMultipartCollection("test multipart coll", "/test-coll");
coll.setAcceptsEntry();
coll.addAccepts("image/*", "multipart-related");
assertTrue("Collection does not accept entries.", coll.acceptsEntry());
assertTrue("Collection does not accept multipart related images", coll.acceptsMultipart("image/*"));
StringWriter sw = new StringWriter();
svc.writeTo(sw);
String s = sw.toString();