@Test public void testGetTimestamp() throws Exception { BaseEntity<Key> entity = builder.build(); assertEquals(TIMESTAMP, entity.getTimestamp("timestamp")); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -1); Timestamp timestamp = Timestamp.of(cal.getTime()); entity = builder.set("timestamp", TimestampValue.of(timestamp)).build(); assertEquals(timestamp, entity.getTimestamp("timestamp")); }