@Test
public void testHasOwnerIdAndSpec() {

    List<OperationAllowed> found = _opAllowRepo.findAllWithOwner(1, Optional.<Specification<OperationAllowed>>of
        (OperationAllowedSpecs.hasGroupId(_intranetGroup.getId())));
    assertEquals(found.size(), 2);
}