@Test
  public void does_not_update_capped_collection() {
    // given
    for (int i = 0; i < 5; i++) {
      repo.save(new User("user" + i, "Herr User Nr. " + i));
    }

    // when
    User user;
    user = repo.findOne("user0");
    user.setFullName("Something completely different");
    repo.save(user);
    user = repo.findOne("user0");

    // then
    assertThat("Fullname mismatch", user.getFullName(), is("Something completely different"));
  }
  @Test
  public void does_not_delete_from_capped_collection() {
    // given
    for (int i = 0; i < 5; i++) {
      repo.save(new User("user" + i, "Herr User Nr. " + i));
    }

    // when
    repo.delete("user0");

    // then
    assertNull("User not deleted", repo.findOne("user0"));
  }