### Question:
SerDeUtils { public static Block getBlockObject(Type type, Object object, ObjectInspector objectInspector) { Block block = serializeObject(type, null, object, objectInspector); return requireNonNull(block, "serialized result is null"); } private  SerDeUtils(); static Block getBlockObject(Type type, Object object, ObjectInspector objectInspector); static Block serializeObject(Type type, BlockBuilder builder, Object object, ObjectInspector inspector); @VisibleForTesting static Block serializeObject(Type type, BlockBuilder builder, Object object, ObjectInspector inspector, boolean filterNullMapKeys);  }### Answer:
@Test public void testReuse() { BytesWritable value = new BytesWritable(); byte[] first = "hello world".getBytes(UTF_8); value.set(first, 0, first.length); byte[] second = "bye".getBytes(UTF_8); value.set(second, 0, second.length); Type type = new TypeToken<Map<BytesWritable, Long>>() {}.getType(); ObjectInspector inspector = getInspector(type); Block actual = getBlockObject(mapType(createUnboundedVarcharType(), BIGINT), ImmutableMap.of(value, 0L), inspector); Block expected = mapBlockOf(createUnboundedVarcharType(), BIGINT, "bye", 0L); assertBlockEquals(actual, expected); }