@Test
public void testReversibleTraceWithDiamond() throws IOException
{
final Trace trace = new TraceRelationshipBuilder<Integer>()
.addTrace(0, new ShallowTraceBuilder("source", ResultType.SUCCESS)
.setValue("source value")
.setStartNanos(0L)
.setPendingNanos(25L)
.setEndNanos(50L)
.build())
.addTrace(1, new ShallowTraceBuilder("left", ResultType.SUCCESS)
.setValue("left value")
.setStartNanos(50L)
.setPendingNanos(75L)
.setEndNanos(100L)
.build())
.addTrace(2, new ShallowTraceBuilder("right", ResultType.SUCCESS)
.setValue("right value")
.setStartNanos(50L)
.setPendingNanos(75L)
.setEndNanos(100L)
.build())
.addTrace(3, new ShallowTraceBuilder("sink", ResultType.SUCCESS)
.setValue("sink value")
.setStartNanos(100L)
.setPendingNanos(125L)
.setEndNanos(150L)
.build())