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

    // Setup:
    when(engineManager.retrieveUser(anyString())).thenReturn(Optional.empty());
    manager.storeState(MODEL_FACTORY.createModel(), "error", "test");
}