Utils { public static final int getUnsignedInt (final byte b) { return b & FOURTH_BYTE_MASK; } private  Utils(); static final void isReserved(final long field); static final void isExpected(final int field, final int expected); static final boolean isBitSet(final int num); static final void printField(final StringBuilder sb, final String fieldName, final String fieldValue, final int indent); static final void printField(final StringBuilder sb, final String fieldName, final int fieldValue, final int indent); static final void printField(final StringBuilder sb, final String fieldName, final long fieldValue, final int indent); static final void printField(final StringBuilder sb, final String fieldName, final byte fieldValue, final int indent); static final void printField(final StringBuilder sb, final String fieldName, final boolean fieldValue, final int indent); static final void printField(final StringBuilder sb, final String fieldName, final ByteBuffer fieldValue, final int indent); static final int getUnsignedInt(final byte b); static final long getUnsignedLong(final int i); static final long getUnsignedLong(final short i); static final String LOG_OUT_INDENT; static final int FIRST_BYTE_MASK; static final int SECOND_BYTE_MASK; static final int THIRD_BYTE_MASK; static final int FOURTH_BYTE_MASK; }
@Test public void testGetUnsignedInt () { assertEquals(0xF0, Utils.getUnsignedInt((byte) 0xF0)); }