@Test public void executionByKey() throws Exception { final ProductType productType = client().executeBlocking(ProductTypeCreateCommand.of(getDraft())); client().executeBlocking(ProductTypeDeleteCommand.ofKey(productType.getKey(), productType.getVersion())); final Query<ProductType> query = ProductTypeQuery.of() .withPredicates(m -> m.id().is(productType.getId())); assertThat(client().executeBlocking(query).head()).isEmpty(); }