private void typeUnsupportCode(Object value) {
    AnnotationTranscoder transcoder = new AnnotationTranscoder();

    byte typeCode = transcoder.getTypeCode(value);
    byte[] bytes = transcoder.encode(value, typeCode);
    Object decode = transcoder.decode(typeCode, bytes);

    Assert.assertEquals(value.toString(), decode.toString());
  }
  private void typeBinaryCode(byte[] value) {
    AnnotationTranscoder transcoder = new AnnotationTranscoder();

    byte typeCode = transcoder.getTypeCode(value);
    byte[] bytes = transcoder.encode(value, typeCode);
    Object decode = transcoder.decode(typeCode, bytes);

    Assert.assertArrayEquals(value, (byte[]) decode);
  }
 private void testIntString(int intValue, String stringValue) {
   AnnotationTranscoder transcoder = new AnnotationTranscoder();
   TIntStringValue tIntStringValue = new TIntStringValue(intValue);
   tIntStringValue.setStringValue(stringValue);
   byte[] encode = transcoder.encode(tIntStringValue, AnnotationTranscoder.CODE_INT_STRING);
   IntStringValue decode =
       (IntStringValue) transcoder.decode(AnnotationTranscoder.CODE_INT_STRING, encode);
   Assert.assertEquals(tIntStringValue.getIntValue(), decode.getIntValue());
   Assert.assertEquals(tIntStringValue.getStringValue(), decode.getStringValue());
 }