FIXValue { @Deprecated public long asCheckSum() { return asInt(); } FIXValue(int capacity); byte byteAt(int index); int length(); boolean contentEquals(byte x); boolean contentEquals(byte[] x); boolean contentEquals(char x); boolean contentEquals(CharSequence x); void copyTo(byte[] bytes); void reset(); void set(FIXValue value); boolean asBoolean(); void setBoolean(boolean x); char asChar(); void setChar(char x); long asInt(); void setInt(long x); double asFloat(); void setFloat(double x, int decimals); String asString(); void asString(Appendable x); void asString(StringBuilder x); void setString(CharSequence x); void asDate(MutableDateTime x); void setDate(ReadableDateTime x); void asTimeOnly(MutableDateTime x); void setTimeOnly(ReadableDateTime x, boolean millis); void asTimestamp(MutableDateTime x); void setTimestamp(ReadableDateTime x, boolean millis); @Deprecated long asCheckSum(); void setCheckSum(long x); boolean get(ByteBuffer buffer); void put(ByteBuffer buffer); @Override String toString(); void toString(StringBuilder builder);  }
@SuppressWarnings("deprecation") @Test public void asCheckSum() throws FIXValueOverflowException { get("064\u0001"); assertEquals(64, value.asCheckSum()); }