final long counterValue = 1;
final boolean flagValue = true;
BinaryValue registerValue = BinaryValue.create("stuff");
BinaryValue counterKey = BinaryValue.create("1");
BinaryValue setKey = BinaryValue.create("2");
BinaryValue mapKey = BinaryValue.create("3");
BinaryValue registerKey = BinaryValue.create("4");
BinaryValue flagKey = BinaryValue.create("5");
RiakDtPB.DtUpdateResp resp = RiakDtPB.DtUpdateResp.newBuilder()
.addMapValue(RiakDtPB.MapEntry.newBuilder()
.setField(RiakDtPB.MapField.newBuilder()
.setType(RiakDtPB.MapField.MapFieldType.COUNTER)
.setName(ByteString.copyFrom(counterKey.unsafeGetValue())))
.setCounterValue(counterValue))
.addMapValue(RiakDtPB.MapEntry.newBuilder()
.setField(RiakDtPB.MapField.newBuilder()
.setName(ByteString.copyFrom(setKey.unsafeGetValue()))
.setType(RiakDtPB.MapField.MapFieldType.SET))
.addAllSetValue(setValues))
.addMapValue(RiakDtPB.MapEntry.newBuilder()
.setField(RiakDtPB.MapField.newBuilder()
.setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
.setType(RiakDtPB.MapField.MapFieldType.MAP)))
.addMapValue(RiakDtPB.MapEntry.newBuilder()
.setField(RiakDtPB.MapField.newBuilder()
.setName(ByteString.copyFrom(registerKey.unsafeGetValue()))
.setType(RiakDtPB.MapField.MapFieldType.REGISTER))
.setRegisterValue(ByteString.copyFrom(registerValue.unsafeGetValue())))
.addMapValue(RiakDtPB.MapEntry.newBuilder()
.setField(RiakDtPB.MapField.newBuilder()
.setName(ByteString.copyFrom(flagKey.unsafeGetValue()))
.setType(RiakDtPB.MapField.MapFieldType.FLAG))
.setFlagValue(flagValue))
.build();
CrdtResponseConverter converter = new CrdtResponseConverter();