assertThat(manager.find(Tweet.class, tweet.getId())).isNull();
}
// batch should reinit batch context
batch.insertOrUpdate(user);
batch.endBatch();
User foundUser = manager.find(User.class, user.getId());
assertThat(foundUser.getFirstname()).isEqualTo("firstname");
assertThat(foundUser.getLastname()).isEqualTo("lastname");