DecoderImpl decoder = new DecoderImpl();
EncoderImpl encoder = new EncoderImpl(decoder);
UnsignedIntegerType ult = new UnsignedIntegerType(encoder, decoder);
//values between 0 and 255 are encoded as a specific 'small' type using a single byte
UnsignedIntegerEncoding encoding = ult.getEncoding(UnsignedInteger.valueOf(1L));
assertEquals("incorrect encoding returned", EncodingCodes.SMALLUINT, encoding.getEncodingCode());
}