@Override
  public void accept(final DataType data) {
    if (data instanceof StartingData) {
      handleEvent((StartingData) data);
    } else if (data instanceof StoppingData) {
      handleEvent((StoppingData) data);
    }
  }
@Test
  void statusRecordsTheStartTime() {
    //given
    final var startTime = LocalDateTime.of(2017, Month.APRIL, 1, 19, 9);
    final var startingData = new StartingData(startTime);
    final var statusMember = new StatusMember(1);
    //when
    statusMember.accept(startingData);
    //then
    assertEquals(startTime, statusMember.getStarted());
  }