### Question:
IcebergTimestampObjectInspector extends AbstractPrimitiveJavaObjectInspector implements TimestampObjectInspector { private IcebergTimestampObjectInspector() { super(TypeInfoFactory.timestampTypeInfo); } private  IcebergTimestampObjectInspector(); static IcebergTimestampObjectInspector get(boolean adjustToUTC); @Override Timestamp getPrimitiveJavaObject(Object o); @Override TimestampWritable getPrimitiveWritableObject(Object o); @Override Object copyObject(Object o);  }### Answer:
@Test public void testIcebergTimestampObjectInspector() { TimestampObjectInspector oi = IcebergTimestampObjectInspector.get(false); Assert.assertEquals(ObjectInspector.Category.PRIMITIVE, oi.getCategory()); Assert.assertEquals(PrimitiveObjectInspector.PrimitiveCategory.TIMESTAMP, oi.getPrimitiveCategory()); Assert.assertEquals(TypeInfoFactory.timestampTypeInfo, oi.getTypeInfo()); Assert.assertEquals(TypeInfoFactory.timestampTypeInfo.getTypeName(), oi.getTypeName()); Assert.assertEquals(Timestamp.class, oi.getJavaPrimitiveClass()); Assert.assertEquals(TimestampWritable.class, oi.getPrimitiveWritableClass()); Assert.assertNull(oi.copyObject(null)); Assert.assertNull(oi.getPrimitiveJavaObject(null)); Assert.assertNull(oi.getPrimitiveWritableObject(null)); LocalDateTime local = LocalDateTime.of(2020, 1, 1, 0, 0); Timestamp ts = Timestamp.valueOf("2020-01-01 00:00:00"); Assert.assertEquals(ts, oi.getPrimitiveJavaObject(local)); Assert.assertEquals(new TimestampWritable(ts), oi.getPrimitiveWritableObject(local)); Timestamp copy = (Timestamp) oi.copyObject(ts); Assert.assertEquals(ts, copy); Assert.assertNotSame(ts, copy); Assert.assertFalse(oi.preferWritable()); }