@Test
  public void testFindOne() {
    InspireAtomFeed feed1 = newInspireAtomFeed();
    feed1 = _repo.save(feed1);

    InspireAtomFeed feed2 = newInspireAtomFeed();
    feed2 = _repo.save(feed2);

    assertEquals(feed2, _repo.findOne(feed2.getId()));
    assertEquals(feed1, _repo.findOne(feed1.getId()));

    assertEquals(1, _repo.findOne(feed2.getId()).getEntryList().size());
    assertEquals(feed2.getEntryList().get(0), _repo.findOne(feed2.getId()).getEntryList().get(0));
  }
  @Test
  @Ignore("Constraint exception occurs in H2.  Has to do with entry list referencing atom feed.")
  public void testCleanAtomDocumentsByMetadataId() {
    _repo.deleteAll();

    InspireAtomFeed feed1 = newInspireAtomFeed();
    feed1.setMetadataId(1);
    feed1 = _repo.save(feed1);

    assertEquals(feed1.getMetadataId(), _repo.findOne(feed1.getId()).getMetadataId());

    InspireAtomFeed feed2 = newInspireAtomFeed();
    feed2.setMetadataId(2);
    feed2 = _repo.save(feed2);
    assertEquals(feed2.getMetadataId(), _repo.findOne(feed2.getId()).getMetadataId());

    assertEquals(2, _repo.findAll().size());

    _repo.deleteAll(InspireAtomFeedSpecs.hasMetadataId(1));

    assertEquals(1, _repo.findAll().size());
  }