static void assertContainerInAccountService(Container container, AccountService accountService) {
Container containerFoundById =
accountService.getAccountById(container.getParentAccountId()).getContainerById(container.getId());
Container containerFoundByName =
accountService.getAccountById(container.getParentAccountId()).getContainerByName(container.getName());
assertEquals("Container got by id from accountService/account does not match container got by name.",
containerFoundById, containerFoundByName);
assertEquals("Container got by id from accountService/account does not match the container to assert",
containerFoundById, container);
}