@Test
public void testRefreshFact() {

  long timestamp = 123456789;
  FactManager manager = getFactManagerWithMockedClock(timestamp);
  FactEntity fact = createAndSaveFact();
  assertEquals(fact.getLastSeenTimestamp(), manager.getFact(fact.getId()).getLastSeenTimestamp());
  FactEntity refreshedFact = manager.refreshFact(fact.getId());
  assertEquals(fact.getId(), refreshedFact.getId());
  assertEquals(timestamp, refreshedFact.getLastSeenTimestamp());
  assertEquals(timestamp, manager.getFact(fact.getId()).getLastSeenTimestamp());
}