@Test public void testIncrementClickCount() { final StateValue<Integer> count = new StateValue<>(); count.set(0); LearningStateComponentSpec.incrementClickCount(count); LithoAssertions.assertThat(count).valueEqualTo(1); }
@OnUpdateState static void incrementClickCount(StateValue<Integer> count) { count.set(count.get() + 1); }
LearningStateComponentSpec { @OnUpdateState static void incrementClickCount(StateValue<Integer> count) { count.set(count.get() + 1); } }
LearningStateComponentSpec { @OnUpdateState static void incrementClickCount(StateValue<Integer> count) { count.set(count.get() + 1); }  }
LearningStateComponentSpec { @OnUpdateState static void incrementClickCount(StateValue<Integer> count) { count.set(count.get() + 1); }   }
LearningStateComponentSpec { @OnUpdateState static void incrementClickCount(StateValue<Integer> count) { count.set(count.get() + 1); }    }