Programmatic cache configuration only works for Infinispan 9.1.x. Previous versions can use a linked configuration file to create caches. The InfinispanContainer needed to be updated in order to make the use of GenericContainer methods work.