### Question:
CompactEncoder { public static boolean hasTerminator(byte[] packedKey) { return ((packedKey[0] >> 4) & 2) != 0; }  static byte[] packNibbles(byte[] nibbles); static boolean hasTerminator(byte[] packedKey); static byte[] unpackToNibbles(byte[] str); static byte[] binToNibbles(byte[] str);  }### Answer:
@Test(expected = NullPointerException.class) public void testHasTerminator_wNullArray() { CompactEncoder.hasTerminator(null); }