Utils { public static int getBitRange(final int b, final int s, final int n) { return (((b & MASK) >> (s & MASK)) & ((1 << (n & MASK)) - 1)) & MASK; } private  Utils(); static byte[] concatByteArray(final byte[] a, final byte[] b); static int getBitRange(final int b, final int s, final int n); static int mergeBytes(final int high, final int low); static int setBitRange(final int val,
            final int start, final int len, final int newVal); static byte[] splitInteger(final int value); static String toHex(final byte[] data);  }
@Test public void testGetBitRange() { int b = 1; int s = 0; int n = 1; int expResult = 1; int result = Utils.getBitRange(b, s, n); assertEquals(expResult, result); }