@Test
void testExportClosesWriters() throws XMLStreamException, IOException
{

    final XMLStreamWriter xmlWriterMock = mock(XMLStreamWriter.class);
    final Writer writerMock = mock(Writer.class);
    new SpecobjectExporter(Stream.empty(), xmlWriterMock, writerMock, Newline.UNIX).runExport();
    final InOrder inOrder = inOrder(xmlWriterMock, writerMock);
    inOrder.verify(xmlWriterMock).close();
    inOrder.verify(writerMock).close();
    inOrder.verifyNoMoreInteractions();
}