Neo4j examples contains code examples using the different components included in the Neo4j package.
For your reference, there are unit tests included which illustrate approaches for testing graph-based applications.