void () { final SMTestProxy root = createSuiteProxy("root"); final SMTestProxy suite1 = createSuiteProxy("suite1", root); final SMTestProxy suite2 = createSuiteProxy("suite2", root); final SMTestProxy test11 = createTestProxy("test11", suite1); final SMTestProxy test12 = createTestProxy("test12", suite1); final SMTestProxy test21 = createTestProxy("test21", suite2); test11.setDuration(5); Long duration = root.getDuration(); assertNotNull(duration); assertEquals(5L, duration.longValue()); test12.setDuration(6); duration = root.getDuration(); assertNotNull(duration); assertEquals(11, duration.longValue()); test21.setDuration(9); duration = root.getDuration(); assertNotNull(duration); assertEquals(20, duration.longValue()); }