@Nonnull
protected String serialize( @Nonnull Serializer<T, Node, Node> serializer, @Nonnull T objectToSerialize ) throws IOException {
GraphDatabaseService db = neo4jRule.createDb();
try ( Transaction tx = db.beginTx() ) {
Node rootNode = db.createNode();
serializer.serialize( objectToSerialize, rootNode );
tx.success();
}