    @Test
    public void testDecodeStatusCode() throws XMLStreamException {

        XmlDecoder decoder = new XmlDecoder();

        decoder.setInput(new ByteArrayInputStream("<Value><Code>0</Code></Value>".getBytes()));
        assertEquals(decoder.decodeStatusCode("Value").getValue(), 0);

        decoder.setInput(new ByteArrayInputStream("<Value><Code>1</Code></Value>".getBytes()));
        assertEquals(decoder.decodeStatusCode("Value").getValue(), 1);
    }