@Test(expected = IllegalStateException.class)
public void testRemoveFromEmptyHistory() throws Exception {

  StateHistory<MysqlSourceState> history =
      new StateHistory<>(SOURCE_NAME, 2, new TestRepository(), metrics);
  history.removeLast();
}