@Test public void testDependentProducts() { Product prod = new Product("test-label", "test-product-name", owner); HashSet<String> dependentProductIds = new HashSet<String>(); dependentProductIds.add("ProductX"); prod.setDependentProductIds(dependentProductIds); productCurator.create(prod); Product lookedUp = productCurator.find(prod.getUuid()); assertThat(lookedUp.getDependentProductIds(), hasItem("ProductX")); }