DefaultRequestTrace implements RequestTrace { public Object getData() { return data; } DefaultRequestTrace( Object data ); private  DefaultRequestTrace( RequestTrace parent, Object data ); static RequestTrace newChild( RequestTrace parent, Object data ); Object getData(); RequestTrace getParent(); RequestTrace newChild( Object data ); @Override String toString();  }
@Test public void testConstructor() { DefaultRequestTrace trace = new DefaultRequestTrace( null ); assertSame( null, trace.getData() ); trace = new DefaultRequestTrace( this ); assertSame( this, trace.getData() ); }