@Test
public void testFetchFactsById() {

  FactTypeEntity type = createAndSaveFactType();
  FactEntity expected = createAndSaveFact(type.getId(), "value");
  createAndSaveFact(type.getId(), "ignored");
  List<FactEntity> actual = ListUtils.list(getFactManager().getFacts(ListUtils.list(expected.getId())));
  assertEquals(1, actual.size());
  assertFact(expected, actual.get(0));
}