### Question:
DropMillisecondsHibernateInterceptor extends EmptyInterceptor { @Override public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { return removeMillisecondsFromDateFields(state); }  @Override boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types); @Override boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types);  }### Answer:
@Test public void shouldNotChangeWhenInstanceOfTime() throws Exception { Time[] time = { Time.valueOf("17:00:00") }; boolean anyChanges = dropMillisecondsHibernateInterceptor.onSave(null, null, time, null, null); assertEquals(false, anyChanges); }