### Question:
DCFields extends DefaultHandler implements Constants { public String getAsXML() { return getAsXML((String)null); } DCFields();  DCFields(InputStream in); @Override void startElement(String uri,
                             String localName,
                             String qName,
                             Attributes attrs); @Override void characters(char[] ch, int start, int length); @Override void endElement(String uri, String localName, String qName); Map<RDFName, List<DCField>> getMap(); List<DCField> titles(); List<DCField> creators(); List<DCField> subjects(); List<DCField> descriptions(); List<DCField> publishers(); List<DCField> contributors(); List<DCField> dates(); List<DCField> types(); List<DCField> formats(); List<DCField> identifiers(); List<DCField> sources(); List<DCField> languages(); List<DCField> relations(); List<DCField> coverages(); List<DCField> rights(); String getAsXML(); void getAsXML(Writer out); String getAsXML(String targetPid); void getAsXML(String targetPid, Writer out);  }### Answer:
@Test public void testDCFieldsInputStream() throws Exception { DCFields dc; Document dcXML; dc = new DCFields(new ByteArrayInputStream(dcWithXmlLang.getBytes("UTF-8"))); dcXML = XMLUnit.buildControlDocument(dc.getAsXML()); assertEquals("Time interval", engine.evaluate(" assertEquals("Tidsinterval", engine.evaluate(" dc = new DCFields(); dcXML = XMLUnit.buildControlDocument(dc.getAsXML()); assertEquals("Expected empty element", "", engine.evaluate(" }