@Test
public void testStringDecoding() throws Exception {

    decoder = new FIXMessageDecoder("UTF-16");
    setUpBuffer("8=FIX.4.2\0019=12\00135=X\001108=30\00110=049\001");
    MessageDecoderResult decoderResult = decoder.decode(null, buffer, decoderOutput);
    assertEquals("wrong decoder result", MessageDecoderResult.OK, decoderResult);
    assertEquals("Wrong encoding", 14397, (int) decoderOutput.getMessage().charAt(0));
}