AbstractGraphTemplate implements GraphTemplate { @Override public Transaction getTransaction() { return getGraph().tx(); }  @Override T insert(T entity); @Override T update(T entity); @Override void delete(T idValue); @Override void deleteEdge(T idEdge); @Override Optional<T> find(ID idValue); @Override EdgeEntity edge(OUT outgoing, String label, IN incoming); @Override Optional<EdgeEntity> edge(E edgeId); @Override Collection<EdgeEntity> getEdges(T entity, Direction direction); @Override Collection<EdgeEntity> getEdges(T entity, Direction direction, String... labels); @SafeVarargs @Override final Collection<EdgeEntity> getEdges(T entity, Direction direction, Supplier<String>... labels); @Override Collection<EdgeEntity> getEdgesById(ID id, Direction direction, String... labels); @Override Collection<EdgeEntity> getEdgesById(ID id, Direction direction); @SafeVarargs @Override final Collection<EdgeEntity> getEdgesById(ID id, Direction direction, Supplier<String>... labels); @Override VertexTraversal getTraversalVertex(Object... vertexIds); @Override EdgeTraversal getTraversalEdge(Object... edgeIds); @Override Transaction getTransaction(); @Override List<T> query(String gremlin); @Override Optional<T> singleResult(String gremlin); @Override PreparedStatement prepare(String gremlin); @Override long count(String label); @Override long count(Class<T> entityClass);  }
@Test public void shouldGetTransaction() { Transaction transaction = getGraphTemplate().getTransaction(); assertNotNull(transaction); }