* Unit test for the HL7MLLP Codec using different start and end bytes.
*/
public class HL7MLLPCodecStandAndEndBytesTest extends ContextTestSupport {
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HL7MLLPCodec codec = new HL7MLLPCodec();
codec.setCharset("iso-8859-1");
// to test with different start and end bytes.
codec.setStartByte('*');
codec.setEndByte1('#');
codec.setEndByte2('*');
codec.setConvertLFtoCR(false);
jndi.bind("hl7codec", codec);
return jndi;
}