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

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