Abdera abdera = new Abdera();
Entry entry = abdera.newEntry();
entry.setContent(new IRI("http://example.org/xml"), "text/xml");
Writer json = abdera.getWriterFactory().getWriter("json");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
entry.writeTo(json, outputStream);
String output = outputStream.toString();
assertTrue(output.contains("\"type\":\"text/xml\""));
assertTrue(output.contains("\"src\":\"http://example.org/xml\""));