@Test
public void testHasUserId() throws Exception {

    MetadataStatus md1 = _repo.save(newMetadataStatus());
    _repo.save(newMetadataStatus());
    final List<MetadataStatus> found = _repo.findAll(hasUserId(md1.getId().getUserId()));
    assertEquals(1, found.size());
    assertEquals(md1.getId(), found.get(0).getId());
}