void () { final SMTestProxy suite = createSuiteProxy("root"); final SMTestProxy test = createTestProxy("test1", suite); assertNull(suite.getDuration()); test.setDuration(5); Long duration = suite.getDuration(); assertNotNull(duration); assertEquals(5L, duration.longValue()); test.setDuration(7); duration = suite.getDuration(); assertNotNull(duration); assertEquals(7L, duration.longValue()); suite.setFinished(); duration = suite.getDuration(); assertNotNull(duration); assertEquals(7L, duration.longValue()); test.setDuration(8); duration = suite.getDuration(); assertNotNull(duration); assertEquals(8L, duration.longValue()); }