@Test
  public void startStopTest() {
    t.set(100);
    w.start();
    t.set(500);
    assertEquals(400L, w.stop());

    assertEquals(1L, w.getLaps());
    assertEquals(400L, w.getTotal());
  }
  @Test
  public void startLapPauseResumeLapStopTest() {
    t.set(100);
    w.start();
    t.set(200);
    assertEquals(100L, w.lap());
    t.set(300);
    assertEquals(100L, w.pause());
    t.set(500);
    w.resume();
    t.set(600);
    assertEquals(200L, w.stop());

    assertEquals(2L, w.getLaps());
    assertEquals(300L, w.getTotal());
  }
  @Test
  public void startLapsStopTest() {
    t.set(100);
    w.start();
    t.set(200);
    assertEquals(100L, w.lap());
    t.set(500);
    assertEquals(300L, w.lap());
    t.set(600);
    assertEquals(100L, w.stop());

    assertEquals(3L, w.getLaps());
    assertEquals(500L, w.getTotal());
  }
 @Test
 public void badEnd() {
   assertEquals(0L, w.stop());
 }
 @Test
 public void badLap() {
   assertEquals(0L, w.lap());
 }