FragmentBuilder { public Trace getTrace() { return trace; }  boolean isComplete(); boolean isCompleteExceptIgnoredNodes(); Trace getTrace(); ReportingLevel getLevel(); void setLevel(ReportingLevel level); Node getCurrentNode(); Node getLatestNode(String nodeType, boolean onStack); void pushNode(Node node); Node popNode(Class<? extends Node> cls, String uri); void retainNode(String id); Node releaseNode(String id); Node retrieveNode(String id); void addUncompletedCorrelationId(String id, Node node, int position); Set<String> getUncompletedCorrelationIds(); int getUncompletedCorrelationIdPosition(String id); Node removeUncompletedCorrelationId(String id); void suppress(); boolean isSuppressed(); void ignoreNode(); void initInBuffer(int hashCode); boolean isInBufferActive(int hashCode); void writeInData(int hashCode, byte[] b, int offset, int len); byte[] getInData(int hashCode); void initOutBuffer(int hashCode); boolean isOutBufferActive(int hashCode); void writeOutData(int hashCode, byte[] b, int offset, int len); byte[] getOutData(int hashCode); void setState(Object context, String name, Object value); Object getState(Object context, String name); int getThreadCount(); @Override String toString();  }
@Test public void testInitialBusinessTxn() { FragmentBuilder builder = new FragmentBuilder(); assertNotNull("Trace should not be null", builder.getTrace()); assertNotNull("Trace id should not be null", builder.getTrace().getFragmentId()); assertTrue("Trace should have no nodes", builder.getTrace().getNodes().isEmpty()); }