### Question:
Stopwatch implements TestRule { protected void skipped(long nanos, AssumptionViolatedException e, Description description) { } Stopwatch();   Stopwatch(Clock clock); long runtime(TimeUnit unit); final Statement apply(Statement base, Description description);  }### Answer:
@Test public void skipped() { Result result = runTest(SkippedTest.class); assertEquals(0, result.getFailureCount()); assertThat(record.name, is("skippedTest")); assertThat(record.name, is(finishedRecord.name)); assertThat(record.status, is(TestStatus.SKIPPED)); assertTrue("timeSpent > 0", record.duration > 0); assertThat(record.duration, is(finishedRecord.duration)); }