### Question:
ByteUtils { public static boolean isSet(int mask, int b) { return (mask & b) > 0; }  static byte[] fill(byte[] target, int value); static byte[] fill(byte[] target, byte value); static byte[] clone(byte[] src); static byte[] toByteArray(byte b); static byte[] concat(byte[]...arrays); static byte[] prepend(byte[] a, byte b); static byte[] ints2Bytes(Collection<Integer> vals); static byte[] ints2Bytes(int... vals); static int from16BitToInt(byte[] bytes); static int from16BitToInt(byte[] bytes, int off); static int from24BitToInt(byte[] bytes); static int from24BitToInt(byte[] bytes, int off); static int from32BitToInt(byte[] bytes); static int from32BitToInt(byte[] bytes, int off); static byte[] to8Bits(int i); static byte[] to16Bits(int i); static byte[] to24Bits(int i); static byte[] to32Bits(int i); static byte[] to32Bits(long l); static int setFlags(boolean bit7, boolean bit6, boolean bit5, boolean bit4, boolean bit3, boolean bit2, boolean bit1, boolean bit0); static byte setBit(byte b, int bitIndex); static boolean isSet(int mask, int b); static int[] byteArray2Ints(byte[] bytes, int offset, int length); static List<String> byteArray2StringList(byte[] bytes); static String byteArray2SpacedString(byte[] bytes); static String byteArray2StringBlock(byte[] bytes, int cols); static String byteArray2StringBlock(int len, byte[] bytes, int cols); static String byteArray2StringBlock(byte[] bytes, int cols, int indent); static String byteArray2StringBlock(int len, byte[] bytes, int cols, int indent); static String byteArray2StringBlock(byte[] bytes, int cols, int indent, int firstIndent); static String byteArray2StringBlock(int len, byte[] bytes, int cols, int indent, int firstIndent); static byte[] string2bytes(String byteStr); static String print(byte b); static String print(int i); static final byte[] EMPTY_ARRAY; }### Answer:
@Test public void testIsSet(){ Assert.assertTrue(ByteUtils.isSet(0b00001000, 0b00111000)); Assert.assertTrue(ByteUtils.isSet(0b10000000, 0b11100001)); Assert.assertFalse(ByteUtils.isSet(0b00000001, 0b00000000)); Assert.assertFalse(ByteUtils.isSet(0b00000001, 0b11111110)); }