public Connection createSampleRssFeedPrivateConnectionAndRefresh(User u) throws Exception {
//First, setup a sample connection.
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String feb282012TimeStamp = Long.toString(sdf.parse("2012-02-28").getTime());
RssProvider mockProvider = mock(RssProvider.class);
when(mockProvider.getId()).thenReturn(ProviderIdConstants.FEED_PROVIDER_ID);
when(mockProvider.getType()).thenReturn(FeedProvider.TYPE);
Connection sampleFeedConnection = new Connection.Builder()
.provider(mockProvider)
.url(SAMPLE_FEED_FILE_PATH)
.alias("EC2")