public void testCardinality() throws Exception {
BHSDCodec byte1 = Codec.BYTE1;
assertEquals(256, byte1.cardinality());
assertEquals(0, byte1.smallest());
assertEquals(255, byte1.largest());
assertFalse(byte1.encodes(-257));
assertFalse(byte1.encodes(-256));
assertFalse(byte1.encodes(-255));
assertFalse(byte1.encodes(-129));
assertFalse(byte1.encodes(-128));
assertFalse(byte1.encodes(-127));