You can use something similar to my in-memory server, just use the CommunityBootstrapper
inside your tests.
There is also a unit-testing ServerBuilder
which is used for Neo4j's own functional tests against Neo4j server, check the Neo4j Sources for how it is used.