@Test
public void testFilteringXPathSetPrefixBug()
                        throws Exception {

    final XMLAdapter input = new XMLAdapter( FilteringXMLStreamWriterTest.class.getResourceAsStream( "filtering_xpath_set_prefix.xml" ) );
    final List<String> list = new ArrayList<String>();
    list.add( "/app:a/nix:d" );
    final ByteArrayOutputStream bos = new ByteArrayOutputStream();
    final XMLStreamWriter writer = getWriter( list, bos );
    input.getRootElement().serialize( writer );
    writer.close();
    byte[] actual = bos.toByteArray();
    byte[] expected = IOUtils.toByteArray( FilteringXMLStreamWriterTest.class.getResourceAsStream( "filtering_xpath_set_prefix_expected.xml" ) );
    Assert.assertArrayEquals( expected, actual );
}