@Test(timeout = 2000)
public void whenMaximumStatesReachedItExists() throws InterruptedException {
notifier = new ExitNotifier(2);
notifier.incrementNumberOfStates();
notifier.incrementNumberOfStates();
ExitStatus reason = notifier.awaitTermination();
assertThat(reason, is(ExitStatus.MAX_STATES));
}