@Test public void testRemoveIngredient() { addTestRecipe(); Ingredient remove = new Ingredient(.5, Measurements.tsp, "Sugar"); svc.removeIngredient(testRecipe, remove); testRecipe.removeIngredient(remove); Recipe actual = null; List<Recipe> list = svc.getRecipeList(); for (Recipe recipe : list) { if (recipe.getId() == testRecipe.getId()) { actual = recipe; break; } } assertEquals(actual, testRecipe); }