AtomMetadataWriter { void writeUpdate(ZonedDateTime dateTime) throws XMLStreamException { xmlWriter.writeStartElement(ATOM_UPDATED); xmlWriter.writeCharacters(dateTime.format(DateTimeFormatter.ISO_INSTANT)); xmlWriter.writeEndElement(); } AtomMetadataWriter(XMLStreamWriter xmlWriter, ODataUri oDataUri,
                              EntityDataModel entityDataModel, AtomNSConfigurationProvider nsConfigurationProvider); void writeEntryEntityLink(Object entity); void writeCount(Object count);  }
@Test public void testWriteUpdate() throws Exception { startDocument(false); metadataWriter = new AtomMetadataWriter(xmlWriter, odataUri, entityDataModel, nsConfigurationProvider); ZonedDateTime dateTime = ZonedDateTime.of(2014, 5, 27, 23, 0, 0, 0, ZoneId.of("UTC").normalized()); metadataWriter.writeUpdate(dateTime); endDocument(); assertEquals(prettyPrintXml(readContent(EXPECTED_ENTRY_UPDATE_PATH)), prettyPrintXml(outputStream.toString())); }