@Test
public void testIsHarvested() throws Exception {

    Metadata md1 = newMetadata(_inc);
    md1.getHarvestInfo().setHarvested(false);
    md1 = _repository.save(md1);
    Metadata md2 = newMetadata(_inc);
    md2.getHarvestInfo().setHarvested(true);
    md2 = _repository.save(md2);
    assertFindsCorrectMd(md1, (Specification<Metadata>)isHarvested(false), false);
    assertFindsCorrectMd(md2, (Specification<Metadata>)isHarvested(true), false);
}