Delete extends Operation { public Delete(Repository repository) { super(repository); } Delete(Repository repository); @SuppressWarnings("unchecked") void now(Propoid propoid);  }
@Test public void test() throws Exception { Foo foo = repository.query(new Foo()).single(); repository.delete(foo); assertEquals(0, repository.query(new Foo()).count()); assertEquals(0, repository.query(new Bar()).count()); }