@Test
public void testWriteElement_SimpleNamespaceBinding()
                        throws Exception {

    ByteArrayOutputStream writeIn = new ByteArrayOutputStream();
    XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter( writeIn );
    String xmlToWrite = "<test:me xmlns:test='http://deegree.org/test' ><test:abc/></test:me>";
    XMLStreamReader readFrom = createReader( xmlToWrite );
    XMLAdapter.writeElement( writer, readFrom );
    writer.close();
    assertThatXmlIsReadable( writeIn );
}