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

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