This project provide an Apache ZooKeeper implementation for testcontainers
Once, the project is cloned, you could use the gradle wrapper to build the library.
$ ./gradlew jar
The library java archive will be located in the lib/build/libs
folder.
You can take a look to the ZooKeeperContainerTest file to have an example of how to use it.