tr("some.Class", "someMethod", "()V", 2, 0, 0, 100,
tr("other.Class", "otherMethod", "()V", 1, 0, 0, 50));
writer.write(tr);
FressianReader reader = reader();
Object obj = reader.readObject();
while (obj instanceof Symbol) {
Symbol s = (Symbol) obj;
assertThat(s.getId()).isEqualTo(sid(s.getName()));
obj = reader.readObject();
}
TraceRecord tr2 = (TraceRecord) obj;
assertThat(tr2.numChildren()).isEqualTo(1);
assertThat(tr2.getChild(0).getTime()).isEqualTo(50L);