  @Test
  public void givenEmptyModelWhenCreatedTaskThenModelHasTask() {

    // Given
    InboxModel model = new InMemoryInboxModel();

    // When
    List<Event> events = new ArrayList<>();
    Identifier id = new Identifier(0);
    events.add(new CreatedEvent());
    InteractionContext context = new InteractionContext("task", -1, new Date(), Collections.<String, String>emptyMap(), new Interaction(id, events));
    model.apply(context);

    // Then
    assertThat(model.getTasks().entrySet().size(), CoreMatchers.equalTo(1));
  }