public void testUpdatingMediumJobCountUpdatesView() {
allowKnobsViewSetup();
KnobsPresenter presenter = new KnobsPresenter(knobsView);
Schedulable a = new Schedulable(){};
presenter.jobAdded(Priority.MEDIUM, a);
assertEquals(1, stubView.getJobCount());
presenter.jobAdded(Priority.MEDIUM, new Schedulable(){});
assertEquals(2, stubView.getJobCount());
presenter.jobRemoved(Priority.MEDIUM, a);
assertEquals(1, stubView.getJobCount());
presenter.jobAdded(Priority.HIGH, new Schedulable(){});
assertEquals(1, stubView.getJobCount());
}