}
@Test
public void testUpdate() throws Exception {
assertEquals(0, userSearch.search("karsten").size());
JUser user = new JUser("karsten");
userSearch.save(user, true);
assertEquals(1, userSearch.search("karsten").size());
user = new JUser("karsten");
user.setDescription("test");
userSearch.save(user, true);
assertEquals(1, userSearch.search("test").size());
user = new JUser("peter");
new JTweet(4, "users without a tweet get indexed!", user);
userSearch.update(user, true, true);
assertEquals(1, userSearch.search("peter").size());
}