expect(codec.decode(buffer, resolver, builder)).andReturn(new Object());
expect(buffer.getBitPos()).andReturn(12L).anyTimes();
expect(metadata.isAnnotationPresent(ByteAlign.class)).andReturn(true);
buffer.setBitPos(16L);
replay(codec, metadata, buffer, resolver, context);
Codec decorated = decorator.decorate(codec, metadata, Test2.class, context);
assertNotSame(decorated, codec);
decorated.decode(buffer, resolver, builder);
verify(codec, metadata, buffer, resolver, context);
}