@Test(expected = IllegalArgumentException.class)
public void getStatesWithApplicationThatDoesNotExistTest() {

    // Setup:
    when(applicationManager.getApplication(anyString())).thenReturn(Optional.empty());
    manager.getStates(null, "error", new HashSet<>());
}