### Question:
BitUtil { public static boolean getIntBit(int source, int pos) { pos = pos - 1; int bitValue = 1 << pos; return (source & bitValue) == bitValue; }  static String int2Bin(int source); static int bin2Int(String source); static String long2Bin(long source); static long bin2Long(String source); static boolean getIntBit(int source, int pos); static int setIntBit(int source, int pos, boolean value); static boolean getLongBit(long source, int pos); static long setLongBit(long source, int pos, boolean value);  }### Answer:
@Test public void getIntBit() { assertTrue(BitUtil.getIntBit(4, 3)); assertFalse(BitUtil.getIntBit(4, 2)); }