mapWithBigDecimalElements.put("test", new BigDecimal("11.11"));
newBuilder.setMapWithBigDecimalElements(mapWithBigDecimalElements);
HashMap<BigInteger, String> mapWithBigIntKeys = new HashMap<BigInteger, String>();
mapWithBigIntKeys.put(BigInteger.ONE, "test");
newBuilder.setMapWithBigIntKeys(mapWithBigIntKeys);
StringablesRecord stringablesRecord = newBuilder.build();
byte[] recordBytes = serializeRecord(stringablesRecord);
Decoder decoder = DecoderFactory.get().binaryDecoder(recordBytes, null);
SpecificDatumReader<StringablesRecord> specificDatumReader =
new SpecificDatumReader<StringablesRecord>(StringablesRecord.SCHEMA$);
StringablesRecord deserialized = new StringablesRecord();
specificDatumReader.read(deserialized, decoder);
assertEquals(stringablesRecord, deserialized);
}