void () { assertNull(mySimpleTest.getDuration()); mySimpleTest.setDuration(0); Long duration = mySimpleTest.getDuration(); assertNotNull(duration); assertEquals(0, duration.longValue()); mySimpleTest.setDuration(10); duration = mySimpleTest.getDuration(); assertNotNull(duration); assertEquals(10, duration.longValue()); mySimpleTest.setDuration(5); duration = mySimpleTest.getDuration(); assertNotNull(duration); assertEquals(5, duration.longValue()); mySimpleTest.setDuration(-2); assertNull(mySimpleTest.getDuration()); }