@Test
public void test() throws Exception {
final SerializationContext ctx = createContext();
User user = new User();
user.setId(1);
user.setName("John");
user.setSurname("Batman");
user.setGender(User.Gender.MALE);
user.setAccountIds(Arrays.asList(1, 3));
user.setAddresses(Collections.singletonList(new Address("Old Street", "XYZ42")));
byte[] bytes = ProtobufUtil.toWrappedByteArray(ctx, user);
TagHandler tagHandler = new TagHandler() {
private Descriptor nextDescriptor = null;