assertNull(factory.create(metadata, Boolean.class, null));
verify(metadata);
}
public void testDecoding() throws DecodingException {
BitBuffer buffer = new DefaultBitBuffer(ByteBuffer.wrap(new byte[]{(byte) 0xF0}));
expect(metadata.isAnnotationPresent(Bound.class)).andReturn(true);
replay(metadata);
Codec<Boolean> codec = factory.create(metadata, Boolean.class, null);
assertTrue(codec.decode(buffer, null, null));
assertTrue(codec.decode(buffer, null, null));