public final void setData(T data) {
    currentData = data;
    allowModelBuildRequests = true;
    requestModelBuild();
    allowModelBuildRequests = false;
  }
@Test
  public void setData() {
    TestTypedController controller = new TestTypedController();

    controller.setData("data");
    controller.setData("data");

    controller.cancelPendingModelBuild();

    controller.setData("data");
    controller.setData("data");

    assertEquals(4, controller.numTimesBuiltModels);
  }