    @Test
    void updateList() {

        emptyRepository.createList(groceryList);
        groceryList.setSettled(true);
        groceryList.setShoppingItems(new Item[] { ITEM_SOY_MILK });
        assertTrue(emptyRepository.updateList(groceryList.getId(), groceryList));

        Optional<GroceryList> updatedList = emptyRepository.getList(groceryList.getId());
        assertTrue(updatedList.isPresent());
        assertEquals(1, updatedList.get().getShoppingItems().length);
        assertEquals("soy milk", updatedList.get().getShoppingItems()[0].getName());
    }