assertThat(tweetList.get(0).getContent(), is("Hello"));
}
@Test
public void deleteTweet () throws Exception {
Tweet tweet1 = new Tweet();
tweet1.setContent("Hello");
Datastore.put(tweet1);
List<Tweet> tweetList = service.getTweetList();
assertThat(tweetList.size(), is(1));
assertThat(tweetList.get(0).getContent(), is("Hello"));
List<Tweet> listTweet = service.getTweetList();
int listTweetSize = listTweet.size();
int ranIndex = (new Random()).nextInt(listTweetSize);
Tweet tweet = listTweet.get(ranIndex);
System.out.println ("delete Tweet: " + tweet.getEmail() + "; " + tweet.getContent() + "; " + tweet.getKey());
// listTweet = service.deleteTweet(tweet.getKey());
assertThat (listTweet.contains(tweet), is (false));
}